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

Side by Side Diff: content/shell/browser/layout_test/layout_test_browser_context.h

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/shell/browser/shell_browser_context.h" 9 #include "content/shell/browser/shell_browser_context.h"
10 10
11 namespace net { 11 namespace net {
12 class NetLog; 12 class NetLog;
13 } 13 }
14 14
15 namespace content { 15 namespace content {
16 16
17 class DownloadManagerDelegate; 17 class DownloadManagerDelegate;
18 class LayoutTestPushMessagingService; 18 class LayoutTestPushMessagingService;
19 class PermissionManager;
19 class PushMessagingService; 20 class PushMessagingService;
20 21
21 class LayoutTestBrowserContext : public ShellBrowserContext { 22 class LayoutTestBrowserContext : public ShellBrowserContext {
22 public: 23 public:
23 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); 24 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log);
24 ~LayoutTestBrowserContext() override; 25 ~LayoutTestBrowserContext() override;
25 26
26 // BrowserContext implementation. 27 // BrowserContext implementation.
27 DownloadManagerDelegate* GetDownloadManagerDelegate() override; 28 DownloadManagerDelegate* GetDownloadManagerDelegate() override;
28 PushMessagingService* GetPushMessagingService() override; 29 PushMessagingService* GetPushMessagingService() override;
30 PermissionManager* GetPermissionManager() override;
29 31
30 LayoutTestPushMessagingService* GetLayoutTestPushMessagingService(); 32 LayoutTestPushMessagingService* GetLayoutTestPushMessagingService();
31 33
32 protected: 34 protected:
33 ShellURLRequestContextGetter* CreateURLRequestContextGetter( 35 ShellURLRequestContextGetter* CreateURLRequestContextGetter(
34 ProtocolHandlerMap* protocol_handlers, 36 ProtocolHandlerMap* protocol_handlers,
35 URLRequestInterceptorScopedVector request_interceptors) override; 37 URLRequestInterceptorScopedVector request_interceptors) override;
36 38
37 private: 39 private:
38 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_; 40 scoped_ptr<LayoutTestPushMessagingService> push_messaging_service_;
41 scoped_ptr<PermissionManager> permission_manager_;
39 42
40 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); 43 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext);
41 }; 44 };
42 45
43 } // namespace content 46 } // namespace content
44 47
45 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_ 48 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/browser/layout_test/layout_test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698