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

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_renderer_state.h

Issue 464533002: Move guest_view to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made in guest_view_manager_unittest.cc Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 13
14 namespace extensions {
15
14 class WebViewGuest; 16 class WebViewGuest;
15 17
16 // This class keeps track of <webview> renderer state for use on the IO thread. 18 // This class keeps track of <webview> renderer state for use on the IO thread.
17 // All methods should be called on the IO thread. 19 // All methods should be called on the IO thread.
18 class WebViewRendererState { 20 class WebViewRendererState {
19 public: 21 public:
20 struct WebViewInfo { 22 struct WebViewInfo {
21 int embedder_process_id; 23 int embedder_process_id;
22 int instance_id; 24 int instance_id;
23 std::string partition_id; 25 std::string partition_id;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void AddGuest(int render_process_host_id, int routing_id, 65 void AddGuest(int render_process_host_id, int routing_id,
64 const WebViewInfo& webview_info); 66 const WebViewInfo& webview_info);
65 void RemoveGuest(int render_process_host_id, int routing_id); 67 void RemoveGuest(int render_process_host_id, int routing_id);
66 68
67 WebViewInfoMap webview_info_map_; 69 WebViewInfoMap webview_info_map_;
68 WebViewPartitionIDMap webview_partition_id_map_; 70 WebViewPartitionIDMap webview_partition_id_map_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(WebViewRendererState); 72 DISALLOW_COPY_AND_ASSIGN(WebViewRendererState);
71 }; 73 };
72 74
75 } // namespace extensions
76
73 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 77 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698