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

Side by Side Diff: chrome/browser/chrome_net_benchmarking_message_filter.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
7 7
8 #include "content/public/browser/browser_message_filter.h" 8 #include "content/public/browser/browser_message_filter.h"
9 9
10 namespace net { 10 namespace net {
11 class URLRequestContextGetter; 11 class URLRequestContextGetter;
12 } 12 }
13 13
14 class Profile; 14 class Profile;
15 15
16 // This class filters out incoming Chrome-specific benchmarking IPC messages 16 // This class filters out incoming Chrome-specific benchmarking IPC messages
17 // for the renderer process on the IPC thread. 17 // for the renderer process on the IPC thread.
18 class ChromeNetBenchmarkingMessageFilter 18 class ChromeNetBenchmarkingMessageFilter
19 : public content::BrowserMessageFilter { 19 : public content::BrowserMessageFilter {
20 public: 20 public:
21 ChromeNetBenchmarkingMessageFilter( 21 ChromeNetBenchmarkingMessageFilter(
22 Profile* profile, 22 Profile* profile,
23 net::URLRequestContextGetter* request_context); 23 net::URLRequestContextGetter* request_context);
24 24
25 // content::BrowserMessageFilter methods: 25 // content::BrowserMessageFilter methods:
26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 26 virtual bool OnMessageReceived(const IPC::Message& message) override;
27 27
28 private: 28 private:
29 virtual ~ChromeNetBenchmarkingMessageFilter(); 29 virtual ~ChromeNetBenchmarkingMessageFilter();
30 30
31 // Message handlers. 31 // Message handlers.
32 void OnCloseCurrentConnections(); 32 void OnCloseCurrentConnections();
33 void OnClearCache(IPC::Message* reply_msg); 33 void OnClearCache(IPC::Message* reply_msg);
34 void OnClearHostResolverCache(int* result); 34 void OnClearHostResolverCache(int* result);
35 void OnSetCacheMode(bool enabled); 35 void OnSetCacheMode(bool enabled);
36 void OnClearPredictorCache(int* result); 36 void OnClearPredictorCache(int* result);
37 37
38 // Returns true if benchmarking is enabled for chrome. 38 // Returns true if benchmarking is enabled for chrome.
39 bool CheckBenchmarkingEnabled() const; 39 bool CheckBenchmarkingEnabled() const;
40 40
41 // The Profile associated with our renderer process. This should only be 41 // The Profile associated with our renderer process. This should only be
42 // accessed on the UI thread! 42 // accessed on the UI thread!
43 Profile* profile_; 43 Profile* profile_;
44 scoped_refptr<net::URLRequestContextGetter> request_context_; 44 scoped_refptr<net::URLRequestContextGetter> request_context_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(ChromeNetBenchmarkingMessageFilter); 46 DISALLOW_COPY_AND_ASSIGN(ChromeNetBenchmarkingMessageFilter);
47 }; 47 };
48 48
49 #endif // CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_ 49 #endif // CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
50 50
OLDNEW
« no previous file with comments | « chrome/browser/chrome_elf_init_unittest_win.cc ('k') | chrome/browser/chrome_quota_permission_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698