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

Side by Side Diff: chrome/browser/guestview/guestview.h

Issue 21930006: <webview>: Allocate the view instance ID from the WebView shim (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 7 years, 4 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 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 CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ 5 #ifndef CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_
6 #define CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ 6 #define CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 30 matching lines...) Expand all
41 }; 41 };
42 42
43 explicit GuestView(content::WebContents* guest_web_contents); 43 explicit GuestView(content::WebContents* guest_web_contents);
44 44
45 static GuestView* FromWebContents(content::WebContents* web_contents); 45 static GuestView* FromWebContents(content::WebContents* web_contents);
46 46
47 static GuestView* From(int embedder_process_id, int instance_id); 47 static GuestView* From(int embedder_process_id, int instance_id);
48 48
49 virtual void Attach(content::WebContents* embedder_web_contents, 49 virtual void Attach(content::WebContents* embedder_web_contents,
50 const std::string& extension_id, 50 const std::string& extension_id,
51 int view_instance_id,
52 const base::DictionaryValue& args); 51 const base::DictionaryValue& args);
53 52
54 content::WebContents* embedder_web_contents() const { 53 content::WebContents* embedder_web_contents() const {
55 return embedder_web_contents_; 54 return embedder_web_contents_;
56 } 55 }
57 56
58 // Returns the guest WebContents. 57 // Returns the guest WebContents.
59 content::WebContents* guest_web_contents() const { 58 content::WebContents* guest_web_contents() const {
60 return guest_web_contents_; 59 return guest_web_contents_;
61 } 60 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 int view_instance_id_; 107 int view_instance_id_;
109 108
110 // This is a queue of Events that are destined to be sent to the embedder once 109 // This is a queue of Events that are destined to be sent to the embedder once
111 // the guest is attached to a particular embedder. 110 // the guest is attached to a particular embedder.
112 std::queue<Event*> pending_events_; 111 std::queue<Event*> pending_events_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(GuestView); 113 DISALLOW_COPY_AND_ASSIGN(GuestView);
115 }; 114 };
116 115
117 #endif // CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ 116 #endif // CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_renderer_state.h ('k') | chrome/browser/guestview/guestview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698