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

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

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 #include "chrome/browser/guest_view/web_view/web_view_renderer_state.h" 5 #include "chrome/browser/guest_view/web_view/web_view_renderer_state.h"
6 #include "content/public/browser/browser_thread.h" 6 #include "content/public/browser/browser_thread.h"
7 7
8 using content::BrowserThread; 8 using content::BrowserThread;
9 9
10 namespace extensions {
11
10 // static 12 // static
11 WebViewRendererState* WebViewRendererState::GetInstance() { 13 WebViewRendererState* WebViewRendererState::GetInstance() {
12 return Singleton<WebViewRendererState>::get(); 14 return Singleton<WebViewRendererState>::get();
13 } 15 }
14 16
15 WebViewRendererState::WebViewRendererState() { 17 WebViewRendererState::WebViewRendererState() {
16 } 18 }
17 19
18 WebViewRendererState::~WebViewRendererState() { 20 WebViewRendererState::~WebViewRendererState() {
19 } 21 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::string* partition_id) { 74 std::string* partition_id) {
73 DCHECK_CURRENTLY_ON(BrowserThread::IO); 75 DCHECK_CURRENTLY_ON(BrowserThread::IO);
74 WebViewPartitionIDMap::iterator iter = 76 WebViewPartitionIDMap::iterator iter =
75 webview_partition_id_map_.find(guest_process_id); 77 webview_partition_id_map_.find(guest_process_id);
76 if (iter != webview_partition_id_map_.end()) { 78 if (iter != webview_partition_id_map_.end()) {
77 *partition_id = iter->second.partition_id; 79 *partition_id = iter->second.partition_id;
78 return true; 80 return true;
79 } 81 }
80 return false; 82 return false;
81 } 83 }
84
85 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_renderer_state.h ('k') | chrome/browser/plugins/plugin_info_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698