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

Side by Side Diff: chrome/browser/renderer_host/chrome_extension_message_filter.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/sequenced_task_runner_helpers.h" 10 #include "base/sequenced_task_runner_helpers.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 // This class filters out incoming Chrome-specific IPC messages from the 30 // This class filters out incoming Chrome-specific IPC messages from the
31 // extension process on the IPC thread. 31 // extension process on the IPC thread.
32 class ChromeExtensionMessageFilter : public content::BrowserMessageFilter, 32 class ChromeExtensionMessageFilter : public content::BrowserMessageFilter,
33 public content::NotificationObserver { 33 public content::NotificationObserver {
34 public: 34 public:
35 ChromeExtensionMessageFilter(int render_process_id, Profile* profile); 35 ChromeExtensionMessageFilter(int render_process_id, Profile* profile);
36 36
37 // content::BrowserMessageFilter methods: 37 // content::BrowserMessageFilter methods:
38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 38 virtual bool OnMessageReceived(const IPC::Message& message) override;
39 virtual void OverrideThreadForMessage( 39 virtual void OverrideThreadForMessage(
40 const IPC::Message& message, 40 const IPC::Message& message,
41 content::BrowserThread::ID* thread) OVERRIDE; 41 content::BrowserThread::ID* thread) override;
42 virtual void OnDestruct() const OVERRIDE; 42 virtual void OnDestruct() const override;
43 43
44 private: 44 private:
45 friend class content::BrowserThread; 45 friend class content::BrowserThread;
46 friend class base::DeleteHelper<ChromeExtensionMessageFilter>; 46 friend class base::DeleteHelper<ChromeExtensionMessageFilter>;
47 47
48 virtual ~ChromeExtensionMessageFilter(); 48 virtual ~ChromeExtensionMessageFilter();
49 49
50 // TODO(jamescook): Move these functions into the extensions module. Ideally 50 // TODO(jamescook): Move these functions into the extensions module. Ideally
51 // this would be in extensions::ExtensionMessageFilter but that will require 51 // this would be in extensions::ExtensionMessageFilter but that will require
52 // resolving the MessageService and ActivityLog dependencies on src/chrome. 52 // resolving the MessageService and ActivityLog dependencies on src/chrome.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void OnAddDOMActionToExtensionActivityLog( 96 void OnAddDOMActionToExtensionActivityLog(
97 const std::string& extension_id, 97 const std::string& extension_id,
98 const ExtensionHostMsg_DOMAction_Params& params); 98 const ExtensionHostMsg_DOMAction_Params& params);
99 void OnAddEventToExtensionActivityLog( 99 void OnAddEventToExtensionActivityLog(
100 const std::string& extension_id, 100 const std::string& extension_id,
101 const ExtensionHostMsg_APIActionOrEvent_Params& params); 101 const ExtensionHostMsg_APIActionOrEvent_Params& params);
102 102
103 // content::NotificationObserver implementation. 103 // content::NotificationObserver implementation.
104 virtual void Observe(int type, 104 virtual void Observe(int type,
105 const content::NotificationSource& source, 105 const content::NotificationSource& source,
106 const content::NotificationDetails& details) OVERRIDE; 106 const content::NotificationDetails& details) override;
107 107
108 const int render_process_id_; 108 const int render_process_id_;
109 109
110 // The Profile associated with our renderer process. This should only be 110 // The Profile associated with our renderer process. This should only be
111 // accessed on the UI thread! Furthermore since this class is refcounted it 111 // accessed on the UI thread! Furthermore since this class is refcounted it
112 // may outlive |profile_|, so make sure to NULL check if in doubt; async 112 // may outlive |profile_|, so make sure to NULL check if in doubt; async
113 // calls and the like. 113 // calls and the like.
114 Profile* profile_; 114 Profile* profile_;
115 115
116 scoped_refptr<extensions::InfoMap> extension_info_map_; 116 scoped_refptr<extensions::InfoMap> extension_info_map_;
117 117
118 content::NotificationRegistrar notification_registrar_; 118 content::NotificationRegistrar notification_registrar_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); 120 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ 123 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698