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

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

Issue 622793002: Group the different permission related methods in the content api. (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 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/shell/browser/shell_content_browser_client.h" 8 #include "content/shell/browser/shell_content_browser_client.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class LayoutTestNotificationManager; 12 class LayoutTestNotificationManager;
13 13
14 class LayoutTestContentBrowserClient : public ShellContentBrowserClient { 14 class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
15 public: 15 public:
16 // Gets the current instance. 16 // Gets the current instance.
17 static LayoutTestContentBrowserClient* Get(); 17 static LayoutTestContentBrowserClient* Get();
18 18
19 LayoutTestContentBrowserClient(); 19 LayoutTestContentBrowserClient();
20 virtual ~LayoutTestContentBrowserClient(); 20 virtual ~LayoutTestContentBrowserClient();
21 21
22 // Will be lazily created when running layout tests. 22 // Will be lazily created when running layout tests.
23 LayoutTestNotificationManager* GetLayoutTestNotificationManager(); 23 LayoutTestNotificationManager* GetLayoutTestNotificationManager();
24 24
25 // ContentBrowserClient overrides.
26 virtual void RequestDesktopNotificationPermission(
27 const GURL& source_origin,
28 RenderFrameHost* render_frame_host,
29 const base::Callback<void(blink::WebNotificationPermission)>& callback)
30 override;
31 virtual blink::WebNotificationPermission 25 virtual blink::WebNotificationPermission
32 CheckDesktopNotificationPermission( 26 CheckDesktopNotificationPermission(
33 const GURL& source_url, 27 const GURL& source_url,
34 ResourceContext* context, 28 ResourceContext* context,
35 int render_process_id) override; 29 int render_process_id) override;
36 private: 30 private:
37 scoped_ptr<LayoutTestNotificationManager> layout_test_notification_manager_; 31 scoped_ptr<LayoutTestNotificationManager> layout_test_notification_manager_;
38 }; 32 };
39 33
40 } // content 34 } // content
41 35
42 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_ H_ 36 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698