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.cc

Issue 496873006: Move core web_view code to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove dependency of web_view_internal_api.h Created 6 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 #include "chrome/browser/guest_view/web_view/web_view_renderer_state.h"
6 #include "content/public/browser/browser_thread.h" 5 #include "content/public/browser/browser_thread.h"
6 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h"
7 7
8 using content::BrowserThread; 8 using content::BrowserThread;
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // static 12 // static
13 WebViewRendererState* WebViewRendererState::GetInstance() { 13 WebViewRendererState* WebViewRendererState::GetInstance() {
14 return Singleton<WebViewRendererState>::get(); 14 return Singleton<WebViewRendererState>::get();
15 } 15 }
16 16
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 WebViewPartitionIDMap::iterator iter = 76 WebViewPartitionIDMap::iterator iter =
77 webview_partition_id_map_.find(guest_process_id); 77 webview_partition_id_map_.find(guest_process_id);
78 if (iter != webview_partition_id_map_.end()) { 78 if (iter != webview_partition_id_map_.end()) {
79 *partition_id = iter->second.partition_id; 79 *partition_id = iter->second.partition_id;
80 return true; 80 return true;
81 } 81 }
82 return false; 82 return false;
83 } 83 }
84 84
85 } // namespace extensions 85 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_renderer_state.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698