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

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

Issue 27408004: <webview>: Resolve relative paths as chrome-extension: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't update src attribute with resolved URL. Created 7 years, 2 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 // 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. It has a 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The
(...skipping 16 matching lines...) Expand all
27 #include "base/compiler_specific.h" 27 #include "base/compiler_specific.h"
28 #include "base/id_map.h" 28 #include "base/id_map.h"
29 #include "base/memory/shared_memory.h" 29 #include "base/memory/shared_memory.h"
30 #include "base/memory/weak_ptr.h" 30 #include "base/memory/weak_ptr.h"
31 #include "base/values.h" 31 #include "base/values.h"
32 #include "content/common/edit_command.h" 32 #include "content/common/edit_command.h"
33 #include "content/port/common/input_event_ack_state.h" 33 #include "content/port/common/input_event_ack_state.h"
34 #include "content/public/browser/browser_plugin_guest_delegate.h" 34 #include "content/public/browser/browser_plugin_guest_delegate.h"
35 #include "content/public/browser/javascript_dialog_manager.h" 35 #include "content/public/browser/javascript_dialog_manager.h"
36 #include "content/public/browser/render_view_host_observer.h" 36 #include "content/public/browser/render_view_host_observer.h"
37 #include "content/public/browser/site_instance.h"
37 #include "content/public/browser/web_contents_delegate.h" 38 #include "content/public/browser/web_contents_delegate.h"
38 #include "content/public/browser/web_contents_observer.h" 39 #include "content/public/browser/web_contents_observer.h"
39 #include "content/public/common/browser_plugin_permission_type.h" 40 #include "content/public/common/browser_plugin_permission_type.h"
40 #include "third_party/WebKit/public/web/WebDragOperation.h" 41 #include "third_party/WebKit/public/web/WebDragOperation.h"
41 #include "third_party/WebKit/public/web/WebDragStatus.h" 42 #include "third_party/WebKit/public/web/WebDragStatus.h"
42 #include "third_party/WebKit/public/web/WebInputEvent.h" 43 #include "third_party/WebKit/public/web/WebInputEvent.h"
43 #include "ui/gfx/rect.h" 44 #include "ui/gfx/rect.h"
44 #include "ui/surface/transport_dib.h" 45 #include "ui/surface/transport_dib.h"
45 46
46 struct BrowserPluginHostMsg_AutoSize_Params; 47 struct BrowserPluginHostMsg_AutoSize_Params;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 class MediaRequest; 303 class MediaRequest;
303 class NewWindowRequest; 304 class NewWindowRequest;
304 class PermissionRequest; 305 class PermissionRequest;
305 class PointerLockRequest; 306 class PointerLockRequest;
306 307
307 BrowserPluginGuest(int instance_id, 308 BrowserPluginGuest(int instance_id,
308 WebContentsImpl* web_contents, 309 WebContentsImpl* web_contents,
309 BrowserPluginGuest* opener, 310 BrowserPluginGuest* opener,
310 bool has_render_view); 311 bool has_render_view);
311 312
313 // Returns the embedder process' SiteInstance object. Note: A guest will
314 // always have an embedder SiteInstance even if it is not yet attached.
315 SiteInstance* GetEmbedderSiteInstance() const;
316
312 // Destroy unattached new windows that have been opened by this 317 // Destroy unattached new windows that have been opened by this
313 // BrowserPluginGuest. 318 // BrowserPluginGuest.
314 void DestroyUnattachedWindows(); 319 void DestroyUnattachedWindows();
315 320
316 void LoadURLWithParams(WebContents* web_contents, 321 void LoadURLWithParams(WebContents* web_contents,
317 const GURL& url, 322 const GURL& url,
318 const Referrer& referrer, 323 const Referrer& referrer,
319 PageTransition transition_type); 324 PageTransition transition_type);
320 325
321 // Bridge IDs correspond to a geolocation request. This method will remove 326 // Bridge IDs correspond to a geolocation request. This method will remove
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // These are parameters passed from JavaScript on attachment to the content 549 // These are parameters passed from JavaScript on attachment to the content
545 // embedder. 550 // embedder.
546 scoped_ptr<base::DictionaryValue> extra_attach_params_; 551 scoped_ptr<base::DictionaryValue> extra_attach_params_;
547 552
548 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 553 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
549 }; 554 };
550 555
551 } // namespace content 556 } // namespace content
552 557
553 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 558 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698