Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: content/browser/dom_storage/dom_storage_task_runner.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/dom_storage/dom_storage_task_runner.h
diff --git a/content/browser/dom_storage/dom_storage_task_runner.h b/content/browser/dom_storage/dom_storage_task_runner.h
index 6186d0a646abf87b5b6d23badedc56be5f686937..a2000a08c1435d909bc78956d8358d1ce8b2aa54 100644
--- a/content/browser/dom_storage/dom_storage_task_runner.h
+++ b/content/browser/dom_storage/dom_storage_task_runner.h
@@ -49,7 +49,7 @@ class CONTENT_EXPORT DOMStorageTaskRunner
// The TaskRunner override returns true if the current thread is running
// on the primary sequence.
- virtual bool RunsTasksOnCurrentThread() const override;
+ bool RunsTasksOnCurrentThread() const override;
// Returns true if the current thread is running on the given |sequence_id|.
virtual bool IsRunningOnSequence(SequenceID sequence_id) const = 0;
@@ -61,7 +61,7 @@ class CONTENT_EXPORT DOMStorageTaskRunner
}
protected:
- virtual ~DOMStorageTaskRunner() {}
+ ~DOMStorageTaskRunner() override {}
};
// A derived class used in chromium that utilizes a SequenceWorkerPool
@@ -76,20 +76,18 @@ class CONTENT_EXPORT DOMStorageWorkerPoolTaskRunner :
base::SequencedWorkerPool::SequenceToken commit_sequence_token,
base::MessageLoopProxy* delayed_task_loop);
- virtual bool PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) override;
+ bool PostDelayedTask(const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay) override;
- virtual bool PostShutdownBlockingTask(
- const tracked_objects::Location& from_here,
- SequenceID sequence_id,
- const base::Closure& task) override;
+ bool PostShutdownBlockingTask(const tracked_objects::Location& from_here,
+ SequenceID sequence_id,
+ const base::Closure& task) override;
- virtual bool IsRunningOnSequence(SequenceID sequence_id) const override;
+ bool IsRunningOnSequence(SequenceID sequence_id) const override;
protected:
- virtual ~DOMStorageWorkerPoolTaskRunner();
+ ~DOMStorageWorkerPoolTaskRunner() override;
private:
@@ -111,20 +109,18 @@ class CONTENT_EXPORT MockDOMStorageTaskRunner :
public:
explicit MockDOMStorageTaskRunner(base::MessageLoopProxy* message_loop);
- virtual bool PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) override;
+ bool PostDelayedTask(const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay) override;
- virtual bool PostShutdownBlockingTask(
- const tracked_objects::Location& from_here,
- SequenceID sequence_id,
- const base::Closure& task) override;
+ bool PostShutdownBlockingTask(const tracked_objects::Location& from_here,
+ SequenceID sequence_id,
+ const base::Closure& task) override;
- virtual bool IsRunningOnSequence(SequenceID sequence_id) const override;
+ bool IsRunningOnSequence(SequenceID sequence_id) const override;
protected:
- virtual ~MockDOMStorageTaskRunner();
+ ~MockDOMStorageTaskRunner() override;
private:
const scoped_refptr<base::MessageLoopProxy> message_loop_;
« no previous file with comments | « content/browser/dom_storage/dom_storage_message_filter.h ('k') | content/browser/dom_storage/local_storage_database_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698