[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:59:21 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 824ae04c83404c218d458eeb6c9c76b0d72481af
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Mar 28 23:18:24 2002 +0000
New private interface for getting at the cache.
* Misc.subproj/IFCache.h: New.
* Misc.subproj/IFCache.mm: New.
* WebKit.pbproj/project.pbxproj: Added IFCache files.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index ff72772..7527bd1 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,13 @@
2002-03-28 Darin Adler <darin at apple.com>
+ New private interface for getting at the cache.
+
+ * Misc.subproj/IFCache.h: New.
+ * Misc.subproj/IFCache.mm: New.
+ * WebKit.pbproj/project.pbxproj: Added IFCache files.
+
+2002-03-28 Darin Adler <darin at apple.com>
+
* WebView.subproj/IFBaseWebController.mm:
(-[IFBaseWebController locationChangeDone:forFrame:]): Remove log of errors
loading now that we have the activity viewer.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index ff72772..7527bd1 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,5 +1,13 @@
2002-03-28 Darin Adler <darin at apple.com>
+ New private interface for getting at the cache.
+
+ * Misc.subproj/IFCache.h: New.
+ * Misc.subproj/IFCache.mm: New.
+ * WebKit.pbproj/project.pbxproj: Added IFCache files.
+
+2002-03-28 Darin Adler <darin at apple.com>
+
* WebView.subproj/IFBaseWebController.mm:
(-[IFBaseWebController locationChangeDone:forFrame:]): Remove log of errors
loading now that we have the activity viewer.
diff --git a/WebKit/Misc.subproj/IFCache.h b/WebKit/Misc.subproj/IFCache.h
new file mode 100644
index 0000000..1f2c2dd
--- /dev/null
+++ b/WebKit/Misc.subproj/IFCache.h
@@ -0,0 +1,17 @@
+//
+// IFCache.h
+// WebKit
+//
+// Created by Darin Adler on Thu Mar 28 2002.
+// Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+ at interface IFCache : NSObject
+{
+}
++ (NSArray *)getStatistics;
++ (void)empty;
++ (void)setDisabled:(BOOL)disabled;
+ at end
diff --git a/WebKit/Misc.subproj/IFCache.mm b/WebKit/Misc.subproj/IFCache.mm
new file mode 100644
index 0000000..d8c6aef
--- /dev/null
+++ b/WebKit/Misc.subproj/IFCache.mm
@@ -0,0 +1,50 @@
+//
+// IFCache.m
+// WebKit
+//
+// Created by Darin Adler on Thu Mar 28 2002.
+// Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
+//
+
+#import "IFCache.h"
+
+#include "misc/loader.h"
+
+ at implementation IFCache
+
++ (NSArray *)getStatistics
+{
+ khtml::Cache::Statistics s = khtml::Cache::getStatistics();
+
+ NSMutableDictionary *counts =
+ [NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithInt:s.images.count],@"images",
+ [NSNumber numberWithInt:s.movies.count],@"movies",
+ [NSNumber numberWithInt:s.styleSheets.count],@"style sheets",
+ [NSNumber numberWithInt:s.scripts.count],@"scripts",
+ [NSNumber numberWithInt:s.other.count],@"other",
+ nil];
+
+ NSMutableDictionary *sizes =
+ [NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithInt:s.images.size],@"images",
+ [NSNumber numberWithInt:s.movies.size],@"movies",
+ [NSNumber numberWithInt:s.styleSheets.size],@"style sheets",
+ [NSNumber numberWithInt:s.scripts.size],@"scripts",
+ [NSNumber numberWithInt:s.other.size],@"other",
+ nil];
+
+ return [NSArray arrayWithObjects:counts, sizes, nil];
+}
+
++ (void)empty
+{
+ khtml::Cache::flushAll();
+}
+
++ (void)setDisabled:(BOOL)disabled
+{
+ khtml::Cache::setCacheDisabled(disabled);
+}
+
+ at end
diff --git a/WebKit/Misc.subproj/WebCoreStatistics.h b/WebKit/Misc.subproj/WebCoreStatistics.h
new file mode 100644
index 0000000..1f2c2dd
--- /dev/null
+++ b/WebKit/Misc.subproj/WebCoreStatistics.h
@@ -0,0 +1,17 @@
+//
+// IFCache.h
+// WebKit
+//
+// Created by Darin Adler on Thu Mar 28 2002.
+// Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+ at interface IFCache : NSObject
+{
+}
++ (NSArray *)getStatistics;
++ (void)empty;
++ (void)setDisabled:(BOOL)disabled;
+ at end
diff --git a/WebKit/Misc.subproj/WebCoreStatistics.m b/WebKit/Misc.subproj/WebCoreStatistics.m
new file mode 100644
index 0000000..d8c6aef
--- /dev/null
+++ b/WebKit/Misc.subproj/WebCoreStatistics.m
@@ -0,0 +1,50 @@
+//
+// IFCache.m
+// WebKit
+//
+// Created by Darin Adler on Thu Mar 28 2002.
+// Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
+//
+
+#import "IFCache.h"
+
+#include "misc/loader.h"
+
+ at implementation IFCache
+
++ (NSArray *)getStatistics
+{
+ khtml::Cache::Statistics s = khtml::Cache::getStatistics();
+
+ NSMutableDictionary *counts =
+ [NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithInt:s.images.count],@"images",
+ [NSNumber numberWithInt:s.movies.count],@"movies",
+ [NSNumber numberWithInt:s.styleSheets.count],@"style sheets",
+ [NSNumber numberWithInt:s.scripts.count],@"scripts",
+ [NSNumber numberWithInt:s.other.count],@"other",
+ nil];
+
+ NSMutableDictionary *sizes =
+ [NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithInt:s.images.size],@"images",
+ [NSNumber numberWithInt:s.movies.size],@"movies",
+ [NSNumber numberWithInt:s.styleSheets.size],@"style sheets",
+ [NSNumber numberWithInt:s.scripts.size],@"scripts",
+ [NSNumber numberWithInt:s.other.size],@"other",
+ nil];
+
+ return [NSArray arrayWithObjects:counts, sizes, nil];
+}
+
++ (void)empty
+{
+ khtml::Cache::flushAll();
+}
+
++ (void)setDisabled:(BOOL)disabled
+{
+ khtml::Cache::setCacheDisabled(disabled);
+}
+
+ at end
diff --git a/WebKit/WebKit.pbproj/project.pbxproj b/WebKit/WebKit.pbproj/project.pbxproj
index 60f609e..9b6577f 100644
--- a/WebKit/WebKit.pbproj/project.pbxproj
+++ b/WebKit/WebKit.pbproj/project.pbxproj
@@ -205,6 +205,7 @@
F5F084BF024BDCA701CA1520,
F58BAB3B025036CA01C1A526,
9CAE9D080252A4130ECA16EA,
+ F59EAE400253C7EE018635CA,
);
isa = PBXHeadersBuildPhase;
};
@@ -245,6 +246,7 @@
F5F084BC024BDC8E01CA1520,
F5F084C0024BDCA701CA1520,
F58BAB390250363E01C1A526,
+ F59EAE420253C8DE018635CA,
);
isa = PBXSourcesBuildPhase;
};
@@ -367,6 +369,8 @@
F5DE3CB2023575AA01A80181,
F5DE3CB3023575AA01A80181,
F515C2B70238249C01C1A525,
+ F59EAE410253C8DE018635CA,
+ F59EAE3E0253C7EE018635CA,
);
isa = PBXGroup;
name = Misc;
@@ -1116,6 +1120,33 @@
);
};
};
+ F59EAE3E0253C7EE018635CA = {
+ isa = PBXFileReference;
+ name = IFCache.h;
+ path = Misc.subproj/IFCache.h;
+ refType = 4;
+ };
+ F59EAE400253C7EE018635CA = {
+ fileRef = F59EAE3E0253C7EE018635CA;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ F59EAE410253C8DE018635CA = {
+ isa = PBXFileReference;
+ name = IFCache.mm;
+ path = Misc.subproj/IFCache.mm;
+ refType = 4;
+ };
+ F59EAE420253C8DE018635CA = {
+ fileRef = F59EAE410253C8DE018635CA;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
F5AEBB3D024A527601C1A526 = {
isa = PBXFileReference;
name = IFPreferences.mm;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list