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

Unified Diff: extensions/browser/guest_view/web_view/web_view_renderer_state.h

Issue 873533002: Cleanup WebViewRendererState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_renderer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/web_view/web_view_renderer_state.h
diff --git a/extensions/browser/guest_view/web_view/web_view_renderer_state.h b/extensions/browser/guest_view/web_view/web_view_renderer_state.h
index 11af76d1c14dd9ae77022063d59aca9af8a1f5ab..92882c7ece0a392353d5977b8ebb032ab2d02a9e 100644
--- a/extensions/browser/guest_view/web_view/web_view_renderer_state.h
+++ b/extensions/browser/guest_view/web_view/web_view_renderer_state.h
@@ -32,7 +32,7 @@ class WebViewRendererState {
// Looks up the information for the embedder <webview> for a given render
// view, if one exists. Called on the IO thread.
bool GetInfo(int guest_process_id, int guest_routing_id,
- WebViewInfo* webview_info);
+ WebViewInfo* web_view_info);
// Looks up the information for the owner for a given guest process in a
// <webview>. Called on the IO thread.
@@ -51,8 +51,8 @@ class WebViewRendererState {
friend class WebViewGuest;
friend struct DefaultSingletonTraits<WebViewRendererState>;
- typedef std::pair<int, int> RenderId;
- typedef std::map<RenderId, WebViewInfo> WebViewInfoMap;
+ using RenderId = std::pair<int, int>;
+ using WebViewInfoMap = std::map<RenderId, WebViewInfo>;
struct WebViewPartitionInfo {
int web_view_count;
@@ -63,18 +63,18 @@ class WebViewRendererState {
partition_id(partition) {}
};
- typedef std::map<int, WebViewPartitionInfo> WebViewPartitionIDMap;
+ using WebViewPartitionIDMap = std::map<int, WebViewPartitionInfo>;
WebViewRendererState();
~WebViewRendererState();
// Adds or removes a <webview> guest render process from the set.
void AddGuest(int render_process_host_id, int routing_id,
- const WebViewInfo& webview_info);
+ const WebViewInfo& web_view_info);
void RemoveGuest(int render_process_host_id, int routing_id);
- WebViewInfoMap webview_info_map_;
- WebViewPartitionIDMap webview_partition_id_map_;
+ WebViewInfoMap web_view_info_map_;
+ WebViewPartitionIDMap web_view_partition_id_map_;
DISALLOW_COPY_AND_ASSIGN(WebViewRendererState);
};
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_renderer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698