OLD | NEW |
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 Loading... |
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 |
OLD | NEW |