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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 3 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 void AddContentScriptIDs(int embedder_process_id, 55 void AddContentScriptIDs(int embedder_process_id,
56 int view_instance_id, 56 int view_instance_id,
57 const std::set<int>& script_ids); 57 const std::set<int>& script_ids);
58 void RemoveContentScriptIDs(int embedder_process_id, 58 void RemoveContentScriptIDs(int embedder_process_id,
59 int view_instance_id, 59 int view_instance_id,
60 const std::set<int>& script_ids); 60 const std::set<int>& script_ids);
61 61
62 private: 62 private:
63 friend class WebViewGuest; 63 friend class WebViewGuest;
64 friend struct DefaultSingletonTraits<WebViewRendererState>; 64 friend struct base::DefaultSingletonTraits<WebViewRendererState>;
65 65
66 using RenderId = std::pair<int, int>; 66 using RenderId = std::pair<int, int>;
67 using WebViewInfoMap = std::map<RenderId, WebViewInfo>; 67 using WebViewInfoMap = std::map<RenderId, WebViewInfo>;
68 68
69 struct WebViewPartitionInfo { 69 struct WebViewPartitionInfo {
70 int web_view_count; 70 int web_view_count;
71 std::string partition_id; 71 std::string partition_id;
72 WebViewPartitionInfo() {} 72 WebViewPartitionInfo() {}
73 WebViewPartitionInfo(int count, std::string partition): 73 WebViewPartitionInfo(int count, std::string partition):
74 web_view_count(count), 74 web_view_count(count),
(...skipping 12 matching lines...) Expand all
87 87
88 WebViewInfoMap web_view_info_map_; 88 WebViewInfoMap web_view_info_map_;
89 WebViewPartitionIDMap web_view_partition_id_map_; 89 WebViewPartitionIDMap web_view_partition_id_map_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(WebViewRendererState); 91 DISALLOW_COPY_AND_ASSIGN(WebViewRendererState);
92 }; 92 };
93 93
94 } // namespace extensions 94 } // namespace extensions
95 95
96 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_ 96 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_RENDERER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698