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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 235633002: <webview>: Move Geolocation permission to chrome layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests in Debug mode Created 6 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Notification that the guest is hung. 80 // Notification that the guest is hung.
81 virtual void RendererUnresponsive() {} 81 virtual void RendererUnresponsive() {}
82 82
83 typedef base::Callback<void(bool /* allow */, 83 typedef base::Callback<void(bool /* allow */,
84 const std::string& /* user_input */)> 84 const std::string& /* user_input */)>
85 PermissionResponseCallback; 85 PermissionResponseCallback;
86 86
87 // Request permission from the delegate to perform an action of the provided 87 // Request permission from the delegate to perform an action of the provided
88 // |permission_type|. Details of the permission request are found in 88 // |permission_type|. Details of the permission request are found in
89 // |request_info|. A |callback| is provided to make the decision. 89 // |request_info|. A |callback| is provided to make the decision.
90 // Returns whether the delegate has, or will handle the permission request. 90 virtual void RequestPermission(
91 virtual bool RequestPermission(
92 BrowserPluginPermissionType permission_type, 91 BrowserPluginPermissionType permission_type,
93 const base::DictionaryValue& request_info, 92 const base::DictionaryValue& request_info,
94 const PermissionResponseCallback& callback, 93 const PermissionResponseCallback& callback,
95 bool allowed_by_default); 94 bool allowed_by_default) {}
96 95
97 // Requests resolution of a potentially relative URL. 96 // Requests resolution of a potentially relative URL.
98 virtual GURL ResolveURL(const std::string& src); 97 virtual GURL ResolveURL(const std::string& src);
99 98
100 // Notifies that the content size of the guest has changed in autosize mode. 99 // Notifies that the content size of the guest has changed in autosize mode.
101 virtual void SizeChanged(const gfx::Size& old_size, 100 virtual void SizeChanged(const gfx::Size& old_size,
102 const gfx::Size& new_size) {} 101 const gfx::Size& new_size) {}
103 }; 102 };
104 103
105 } // namespace content 104 } // namespace content
106 105
107 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 106 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698