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

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: Add todo for auto deny when no listeners attached. Created 8 years 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool ShouldGuestBeFocused() const; 113 bool ShouldGuestBeFocused() const;
114 114
115 // Inform the BrowserPlugin that the guest's contentWindow is ready, 115 // Inform the BrowserPlugin that the guest's contentWindow is ready,
116 // and provide it with a routing ID to grab it. 116 // and provide it with a routing ID to grab it.
117 void GuestContentWindowReady(int content_window_routing_id); 117 void GuestContentWindowReady(int content_window_routing_id);
118 118
119 // Informs the BrowserPlugin that the guest has started/stopped accepting 119 // Informs the BrowserPlugin that the guest has started/stopped accepting
120 // touch events. 120 // touch events.
121 void SetAcceptTouchEvents(bool accept); 121 void SetAcceptTouchEvents(bool accept);
122 122
123 // Requests media access permission from the embedder.
124 void RequestMediaAccess(int request_id);
125 // Informs the BrowserPlugin that the guest's request for media access has
126 // been allowed or denied by the embedder.
127 void RespondMediaAccess(int request_id, bool allow);
128
123 // Tells the BrowserPlugin to tell the guest to navigate to the previous 129 // Tells the BrowserPlugin to tell the guest to navigate to the previous
124 // navigation entry in the navigation history. 130 // navigation entry in the navigation history.
125 void Back(); 131 void Back();
126 // Tells the BrowserPlugin to tell the guest to navigate to the next 132 // Tells the BrowserPlugin to tell the guest to navigate to the next
127 // navigation entry in the navigation history. 133 // navigation entry in the navigation history.
128 void Forward(); 134 void Forward();
129 // Tells the BrowserPlugin to tell the guest to navigate to a position 135 // Tells the BrowserPlugin to tell the guest to navigate to a position
130 // relative to the current index in its navigation history. 136 // relative to the current index in its navigation history.
131 void Go(int relativeIndex); 137 void Go(int relativeIndex);
132 // Tells the BrowserPlugin to terminate the guest process. 138 // Tells the BrowserPlugin to terminate the guest process.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // the changes are not always obvious. For example, there is a maximum 339 // the changes are not always obvious. For example, there is a maximum
334 // number of entries and earlier ones will automatically be pruned. 340 // number of entries and earlier ones will automatically be pruned.
335 int current_nav_entry_index_; 341 int current_nav_entry_index_;
336 int nav_entry_count_; 342 int nav_entry_count_;
337 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 343 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
338 }; 344 };
339 345
340 } // namespace content 346 } // namespace content
341 347
342 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 348 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698