summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/simple_appcache_system.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 05:43:50 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 05:43:50 +0000
commit7fd8fa4f297ee7f4772bf83333aa3efe03754c08 (patch)
treecb749dbea166a834439be297abf1011088d0bf7e /webkit/tools/test_shell/simple_appcache_system.cc
parenta6d33303cac4c5eda9c6b994a1860bee861a19e1 (diff)
downloadchromium_src-7fd8fa4f297ee7f4772bf83333aa3efe03754c08.zip
chromium_src-7fd8fa4f297ee7f4772bf83333aa3efe03754c08.tar.gz
chromium_src-7fd8fa4f297ee7f4772bf83333aa3efe03754c08.tar.bz2
Linux/ChromeOS Chromium style checker cleanup, webkit/ edition.
Automated clean up of style checker errors that were missed due to the plugin not being executed on implementation files. BUG=115047 Review URL: https://chromiumcodereview.appspot.com/12225038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/simple_appcache_system.cc')
-rw-r--r--webkit/tools/test_shell/simple_appcache_system.cc48
1 files changed, 26 insertions, 22 deletions
diff --git a/webkit/tools/test_shell/simple_appcache_system.cc b/webkit/tools/test_shell/simple_appcache_system.cc
index 8503672..bacda10 100644
--- a/webkit/tools/test_shell/simple_appcache_system.cc
+++ b/webkit/tools/test_shell/simple_appcache_system.cc
@@ -35,7 +35,7 @@ class SimpleFrontendProxy
void clear_appcache_system() { system_ = NULL; }
virtual void OnCacheSelected(int host_id,
- const appcache::AppCacheInfo& info) {
+ const appcache::AppCacheInfo& info) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread()) {
@@ -51,7 +51,7 @@ class SimpleFrontendProxy
}
virtual void OnStatusChanged(const std::vector<int>& host_ids,
- appcache::Status status) {
+ appcache::Status status) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread())
@@ -66,7 +66,7 @@ class SimpleFrontendProxy
}
virtual void OnEventRaised(const std::vector<int>& host_ids,
- appcache::EventID event_id) {
+ appcache::EventID event_id) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread())
@@ -82,7 +82,7 @@ class SimpleFrontendProxy
virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
const GURL& url,
- int num_total, int num_complete) {
+ int num_total, int num_complete) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread())
@@ -98,7 +98,7 @@ class SimpleFrontendProxy
}
virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
- const std::string& message) {
+ const std::string& message) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread())
@@ -115,7 +115,7 @@ class SimpleFrontendProxy
virtual void OnLogMessage(int host_id,
appcache::LogLevel log_level,
- const std::string& message) {
+ const std::string& message) OVERRIDE {
if (!system_)
return;
if (system_->is_io_thread())
@@ -130,12 +130,13 @@ class SimpleFrontendProxy
NOTREACHED();
}
- virtual void OnContentBlocked(int host_id, const GURL& manifest_url) {}
+ virtual void OnContentBlocked(int host_id,
+ const GURL& manifest_url) OVERRIDE {}
private:
friend class base::RefCountedThreadSafe<SimpleFrontendProxy>;
- ~SimpleFrontendProxy() {}
+ virtual ~SimpleFrontendProxy() {}
SimpleAppCacheSystem* system_;
};
@@ -161,7 +162,7 @@ class SimpleBackendProxy
base::Unretained(this));
}
- virtual void RegisterHost(int host_id) {
+ virtual void RegisterHost(int host_id) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -173,7 +174,7 @@ class SimpleBackendProxy
}
}
- virtual void UnregisterHost(int host_id) {
+ virtual void UnregisterHost(int host_id) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -185,7 +186,7 @@ class SimpleBackendProxy
}
}
- virtual void SetSpawningHostId(int host_id, int spawning_host_id) {
+ virtual void SetSpawningHostId(int host_id, int spawning_host_id) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -201,7 +202,7 @@ class SimpleBackendProxy
virtual void SelectCache(int host_id,
const GURL& document_url,
const int64 cache_document_was_loaded_from,
- const GURL& manifest_url) {
+ const GURL& manifest_url) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -219,7 +220,7 @@ class SimpleBackendProxy
virtual void GetResourceList(
int host_id,
- std::vector<appcache::AppCacheResourceInfo>* resource_infos) {
+ std::vector<appcache::AppCacheResourceInfo>* resource_infos) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -235,18 +236,20 @@ class SimpleBackendProxy
virtual void SelectCacheForWorker(
int host_id,
int parent_process_id,
- int parent_host_id) {
+ int parent_host_id) OVERRIDE {
NOTIMPLEMENTED(); // Workers are not supported in test_shell.
}
virtual void SelectCacheForSharedWorker(
int host_id,
- int64 appcache_id) {
+ int64 appcache_id) OVERRIDE {
NOTIMPLEMENTED(); // Workers are not supported in test_shell.
}
- virtual void MarkAsForeignEntry(int host_id, const GURL& document_url,
- int64 cache_document_was_loaded_from) {
+ virtual void MarkAsForeignEntry(
+ int host_id,
+ const GURL& document_url,
+ int64 cache_document_was_loaded_from) OVERRIDE {
if (system_->is_ui_thread()) {
system_->io_message_loop()->PostTask(
FROM_HERE,
@@ -261,7 +264,7 @@ class SimpleBackendProxy
}
}
- virtual appcache::Status GetStatus(int host_id) {
+ virtual appcache::Status GetStatus(int host_id) OVERRIDE {
if (system_->is_ui_thread()) {
status_result_ = appcache::UNCACHED;
event_.Reset();
@@ -279,7 +282,7 @@ class SimpleBackendProxy
return status_result_;
}
- virtual bool StartUpdate(int host_id) {
+ virtual bool StartUpdate(int host_id) OVERRIDE {
if (system_->is_ui_thread()) {
bool_result_ = false;
event_.Reset();
@@ -297,7 +300,7 @@ class SimpleBackendProxy
return bool_result_;
}
- virtual bool SwapCache(int host_id) {
+ virtual bool SwapCache(int host_id) OVERRIDE {
if (system_->is_ui_thread()) {
bool_result_ = false;
event_.Reset();
@@ -337,7 +340,7 @@ class SimpleBackendProxy
private:
friend class base::RefCountedThreadSafe<SimpleBackendProxy>;
- ~SimpleBackendProxy() {}
+ virtual ~SimpleBackendProxy() {}
SimpleAppCacheSystem* system_;
base::WaitableEvent event_;
@@ -387,7 +390,8 @@ SimpleAppCacheSystem::~SimpleAppCacheSystem() {
}
}
-void SimpleAppCacheSystem::InitOnUIThread(const base::FilePath& cache_directory) {
+void SimpleAppCacheSystem::InitOnUIThread(
+ const base::FilePath& cache_directory) {
DCHECK(!ui_message_loop_);
ui_message_loop_ = MessageLoop::current();
cache_directory_ = cache_directory;