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

Side by Side Diff: extensions/shell/browser/shell_browser_context.h

Issue 667153007: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/shell/browser/shell_browser_context.h" 10 #include "content/shell/browser/shell_browser_context.h"
11 #include "storage/browser/quota/special_storage_policy.h" 11 #include "storage/browser/quota/special_storage_policy.h"
12 12
13 namespace net { 13 namespace net {
14 class NetLog; 14 class NetLog;
15 } 15 }
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 class InfoMap; 19 class InfoMap;
20 class ShellSpecialStoragePolicy; 20 class ShellSpecialStoragePolicy;
21 21
22 // The BrowserContext used by the content, apps and extensions systems in 22 // The BrowserContext used by the content, apps and extensions systems in
23 // app_shell. 23 // app_shell.
24 class ShellBrowserContext : public content::ShellBrowserContext { 24 class ShellBrowserContext : public content::ShellBrowserContext {
25 public: 25 public:
26 explicit ShellBrowserContext(net::NetLog* net_log); 26 explicit ShellBrowserContext(net::NetLog* net_log);
27 virtual ~ShellBrowserContext(); 27 ~ShellBrowserContext() override;
28 28
29 // content::BrowserContext implementation. 29 // content::BrowserContext implementation.
30 virtual content::BrowserPluginGuestManager* GetGuestManager() override; 30 content::BrowserPluginGuestManager* GetGuestManager() override;
31 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 31 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
32 32
33 net::URLRequestContextGetter* CreateRequestContext( 33 net::URLRequestContextGetter* CreateRequestContext(
34 content::ProtocolHandlerMap* protocol_handlers, 34 content::ProtocolHandlerMap* protocol_handlers,
35 content::URLRequestInterceptorScopedVector request_interceptors, 35 content::URLRequestInterceptorScopedVector request_interceptors,
36 InfoMap* extension_info_map); 36 InfoMap* extension_info_map);
37 37
38 // HACK: Pad the virtual function table so we trip an assertion if someone 38 // HACK: Pad the virtual function table so we trip an assertion if someone
39 // tries to use |this| as a Profile. 39 // tries to use |this| as a Profile.
40 virtual void ProfileFunctionCallOnNonProfileBrowserContext1(); 40 virtual void ProfileFunctionCallOnNonProfileBrowserContext1();
41 virtual void ProfileFunctionCallOnNonProfileBrowserContext2(); 41 virtual void ProfileFunctionCallOnNonProfileBrowserContext2();
(...skipping 15 matching lines...) Expand all
57 void InitURLRequestContextOnIOThread(); 57 void InitURLRequestContextOnIOThread();
58 net::NetLog* net_log_; 58 net::NetLog* net_log_;
59 scoped_refptr<storage::SpecialStoragePolicy> storage_policy_; 59 scoped_refptr<storage::SpecialStoragePolicy> storage_policy_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 61 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
62 }; 62 };
63 63
64 } // namespace extensions 64 } // namespace extensions
65 65
66 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 66 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_window_client.h ('k') | extensions/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698