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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 69913002: Add UMA for <webview> APIs: a. ClearData, b. when Permission request is allowed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refine by permission granularity. Created 7 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
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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 int screen_x, int screen_y); 288 int screen_x, int screen_y);
289 289
290 // Called when the drag started by this guest ends at an OS-level. 290 // Called when the drag started by this guest ends at an OS-level.
291 void EndSystemDrag(); 291 void EndSystemDrag();
292 292
293 // |this| takes ownership of |delegate|. 293 // |this| takes ownership of |delegate|.
294 void SetDelegate(BrowserPluginGuestDelegate* delegate); 294 void SetDelegate(BrowserPluginGuestDelegate* delegate);
295 295
296 void RespondToPermissionRequest(int request_id, 296 void RespondToPermissionRequest(int request_id,
297 bool should_allow, 297 bool should_allow,
298 const std::string& user_input); 298 const std::string& user_input,
299 bool user_initiated);
299 300
300 private: 301 private:
301 class EmbedderWebContentsObserver; 302 class EmbedderWebContentsObserver;
302 friend class TestBrowserPluginGuest; 303 friend class TestBrowserPluginGuest;
303 304
304 class DownloadRequest; 305 class DownloadRequest;
305 class GeolocationRequest; 306 class GeolocationRequest;
306 class JavaScriptDialogRequest; 307 class JavaScriptDialogRequest;
307 // MediaRequest because of naming conflicts with MediaStreamRequest. 308 // MediaRequest because of naming conflicts with MediaStreamRequest.
308 class MediaRequest; 309 class MediaRequest;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // These are parameters passed from JavaScript on attachment to the content 551 // These are parameters passed from JavaScript on attachment to the content
551 // embedder. 552 // embedder.
552 scoped_ptr<base::DictionaryValue> extra_attach_params_; 553 scoped_ptr<base::DictionaryValue> extra_attach_params_;
553 554
554 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 555 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
555 }; 556 };
556 557
557 } // namespace content 558 } // namespace content
558 559
559 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 560 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698