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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and reup patch for review. Created 8 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 | Annotate | Revision Log
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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 bool ShouldGuestBeFocused() const; 108 bool ShouldGuestBeFocused() const;
109 109
110 // Inform the BrowserPlugin that the guest's contentWindow is ready, 110 // Inform the BrowserPlugin that the guest's contentWindow is ready,
111 // and provide it with a routing ID to grab it. 111 // and provide it with a routing ID to grab it.
112 void GuestContentWindowReady(int content_window_routing_id); 112 void GuestContentWindowReady(int content_window_routing_id);
113 113
114 // Informs the BrowserPlugin that the guest has started/stopped accepting 114 // Informs the BrowserPlugin that the guest has started/stopped accepting
115 // touch events. 115 // touch events.
116 void SetAcceptTouchEvents(bool accept); 116 void SetAcceptTouchEvents(bool accept);
117 117
118 // Requests media access permission from the embedder.
119 void RequestMediaAccess(int request_id);
120 // Informs the BrowserPlugin that the guest's request for media access has
121 // been allowed or denied.
122 void RespondMediaAccess(int request_id, bool allow);
123
118 // Tells the BrowserPlugin to tell the guest to navigate to the previous 124 // Tells the BrowserPlugin to tell the guest to navigate to the previous
119 // navigation entry in the navigation history. 125 // navigation entry in the navigation history.
120 void Back(); 126 void Back();
121 // Tells the BrowserPlugin to tell the guest to navigate to the next 127 // Tells the BrowserPlugin to tell the guest to navigate to the next
122 // navigation entry in the navigation history. 128 // navigation entry in the navigation history.
123 void Forward(); 129 void Forward();
124 // Tells the BrowserPlugin to tell the guest to navigate to a position 130 // Tells the BrowserPlugin to tell the guest to navigate to a position
125 // relative to the current index in its navigation history. 131 // relative to the current index in its navigation history.
126 void Go(int relativeIndex); 132 void Go(int relativeIndex);
127 // Tells the BrowserPlugin to terminate the guest process. 133 // Tells the BrowserPlugin to terminate the guest process.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // the changes are not always obvious. For example, there is a maximum 307 // the changes are not always obvious. For example, there is a maximum
302 // number of entries and earlier ones will automatically be pruned. 308 // number of entries and earlier ones will automatically be pruned.
303 int current_nav_entry_index_; 309 int current_nav_entry_index_;
304 int nav_entry_count_; 310 int nav_entry_count_;
305 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 311 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
306 }; 312 };
307 313
308 } // namespace content 314 } // namespace content
309 315
310 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 316 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698