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

Side by Side Diff: content/browser/host_zoom_map_impl.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <cmath> 5 #include <cmath>
6 6
7 #include "content/browser/host_zoom_map_impl.h" 7 #include "content/browser/host_zoom_map_impl.h"
8 8
9 #include "base/string_piece.h" 9 #include "base/string_piece.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/browser/renderer_host/render_process_host_impl.h" 12 #include "content/browser/renderer_host/render_process_host_impl.h"
13 #include "content/browser/renderer_host/render_view_host_impl.h" 13 #include "content/browser/renderer_host/render_view_host_impl.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/public/browser/browser_context.h" 15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/notification_types.h" 18 #include "content/public/browser/notification_types.h"
19 #include "content/public/browser/resource_context.h" 19 #include "content/public/browser/resource_context.h"
20 #include "content/public/common/page_zoom.h" 20 #include "content/public/common/page_zoom.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 #include "net/base/net_util.h" 22 #include "net/base/net_util.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
24 24
25 using WebKit::WebView; 25 using WebKit::WebView;
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using content::RenderProcessHost; 27 using content::RenderProcessHost;
28 using content::RenderViewHost;
28 29
29 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; 30 static const char* kHostZoomMapKeyName = "content_host_zoom_map";
30 31
31 namespace content { 32 namespace content {
32 33
33 HostZoomMap* HostZoomMap::GetForBrowserContext(BrowserContext* context) { 34 HostZoomMap* HostZoomMap::GetForBrowserContext(BrowserContext* context) {
34 HostZoomMapImpl* rv = static_cast<HostZoomMapImpl*>( 35 HostZoomMapImpl* rv = static_cast<HostZoomMapImpl*>(
35 context->GetUserData(kHostZoomMapKeyName)); 36 context->GetUserData(kHostZoomMapKeyName));
36 if (!rv) { 37 if (!rv) {
37 rv = new HostZoomMapImpl(); 38 rv = new HostZoomMapImpl();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 177 }
177 break; 178 break;
178 } 179 }
179 default: 180 default:
180 NOTREACHED() << "Unexpected preference observed."; 181 NOTREACHED() << "Unexpected preference observed.";
181 } 182 }
182 } 183 }
183 184
184 HostZoomMapImpl::~HostZoomMapImpl() { 185 HostZoomMapImpl::~HostZoomMapImpl() {
185 } 186 }
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/intents/intent_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698