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

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

Issue 494473002: Cleanup: Change const char* foo to const char foo[] in content/browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | 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 "content/browser/host_zoom_map_impl.h" 5 #include "content/browser/host_zoom_map_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "content/browser/frame_host/navigation_entry_impl.h" 13 #include "content/browser/frame_host/navigation_entry_impl.h"
14 #include "content/browser/renderer_host/render_process_host_impl.h" 14 #include "content/browser/renderer_host/render_process_host_impl.h"
15 #include "content/browser/renderer_host/render_view_host_impl.h" 15 #include "content/browser/renderer_host/render_view_host_impl.h"
16 #include "content/browser/web_contents/web_contents_impl.h" 16 #include "content/browser/web_contents/web_contents_impl.h"
17 #include "content/common/view_messages.h" 17 #include "content/common/view_messages.h"
18 #include "content/public/browser/browser_context.h" 18 #include "content/public/browser/browser_context.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 #include "content/public/browser/notification_types.h" 21 #include "content/public/browser/notification_types.h"
22 #include "content/public/browser/resource_context.h" 22 #include "content/public/browser/resource_context.h"
23 #include "content/public/common/page_zoom.h" 23 #include "content/public/common/page_zoom.h"
24 #include "net/base/net_util.h" 24 #include "net/base/net_util.h"
25 25
26 static const char* kHostZoomMapKeyName = "content_host_zoom_map";
27
28 namespace content { 26 namespace content {
29 27
30 namespace { 28 namespace {
31 29
30 const char kHostZoomMapKeyName[] = "content_host_zoom_map";
31
32 std::string GetHostFromProcessView(int render_process_id, int render_view_id) { 32 std::string GetHostFromProcessView(int render_process_id, int render_view_id) {
33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
34 RenderViewHost* render_view_host = 34 RenderViewHost* render_view_host =
35 RenderViewHost::FromID(render_process_id, render_view_id); 35 RenderViewHost::FromID(render_process_id, render_view_id);
36 if (!render_view_host) 36 if (!render_view_host)
37 return std::string(); 37 return std::string();
38 38
39 WebContents* web_contents = WebContents::FromRenderViewHost(render_view_host); 39 WebContents* web_contents = WebContents::FromRenderViewHost(render_view_host);
40 40
41 NavigationEntry* entry = 41 NavigationEntry* entry =
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 render_process_host->Send( 379 render_process_host->Send(
380 new ViewMsg_SetZoomLevelForCurrentURL(scheme, host, level)); 380 new ViewMsg_SetZoomLevelForCurrentURL(scheme, host, level));
381 } 381 }
382 } 382 }
383 } 383 }
384 384
385 HostZoomMapImpl::~HostZoomMapImpl() { 385 HostZoomMapImpl::~HostZoomMapImpl() {
386 } 386 }
387 387
388 } // namespace content 388 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/chrome_blob_storage_context.cc ('k') | content/browser/media/webrtc_identity_store_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698