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

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

Issue 578883003: Remove the strict dependency on WebContents for Web Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 content::RenderFrameHost* render_frame_host, 187 content::RenderFrameHost* render_frame_host,
188 const base::Callback<void(blink::WebNotificationPermission)>& callback) 188 const base::Callback<void(blink::WebNotificationPermission)>& callback)
189 OVERRIDE; 189 OVERRIDE;
190 virtual blink::WebNotificationPermission 190 virtual blink::WebNotificationPermission
191 CheckDesktopNotificationPermission( 191 CheckDesktopNotificationPermission(
192 const GURL& source_origin, 192 const GURL& source_origin,
193 content::ResourceContext* context, 193 content::ResourceContext* context,
194 int render_process_id) OVERRIDE; 194 int render_process_id) OVERRIDE;
195 virtual void ShowDesktopNotification( 195 virtual void ShowDesktopNotification(
196 const content::ShowDesktopNotificationHostMsgParams& params, 196 const content::ShowDesktopNotificationHostMsgParams& params,
197 content::RenderFrameHost* render_frame_host, 197 content::BrowserContext* browser_context,
198 scoped_ptr<content::DesktopNotificationDelegate> delegate, 198 scoped_ptr<content::DesktopNotificationDelegate> delegate,
199 base::Closure* cancel_callback) OVERRIDE; 199 base::Closure* cancel_callback) OVERRIDE;
200 virtual void RequestGeolocationPermission( 200 virtual void RequestGeolocationPermission(
201 content::WebContents* web_contents, 201 content::WebContents* web_contents,
202 int bridge_id, 202 int bridge_id,
203 const GURL& requesting_frame, 203 const GURL& requesting_frame,
204 bool user_gesture, 204 bool user_gesture,
205 base::Callback<void(bool)> result_callback, 205 base::Callback<void(bool)> result_callback,
206 base::Closure* cancel_callback) OVERRIDE; 206 base::Closure* cancel_callback) OVERRIDE;
207 virtual void RequestMidiSysExPermission( 207 virtual void RequestMidiSysExPermission(
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 349 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
350 350
351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
352 352
353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
354 }; 354 };
355 355
356 } // namespace chrome 356 } // namespace chrome
357 357
358 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 358 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698