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

Side by Side Diff: chrome/renderer/chrome_render_observer.cc

Issue 6864001: Move RenderProcess to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/chrome_render_observer.h" 5 #include "chrome/renderer/chrome_render_observer.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h"
8 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
9 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
11 #include "chrome/common/thumbnail_score.h" 12 #include "chrome/common/thumbnail_score.h"
12 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 13 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
13 #include "chrome/renderer/translate_helper.h" 14 #include "chrome/renderer/translate_helper.h"
14 #include "content/renderer/content_renderer_client.h" 15 #include "content/renderer/content_renderer_client.h"
15 #include "content/renderer/render_view.h" 16 #include "content/renderer/render_view.h"
16 #include "skia/ext/bitmap_platform_device.h" 17 #include "skia/ext/bitmap_platform_device.h"
17 #include "skia/ext/image_operations.h" 18 #include "skia/ext/image_operations.h"
19 #include "skia/ext/platform_canvas.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
23 #include "ui/gfx/color_utils.h" 25 #include "ui/gfx/color_utils.h"
24 #include "ui/gfx/skbitmap_operations.h" 26 #include "ui/gfx/skbitmap_operations.h"
25 #include "webkit/glue/webkit_glue.h" 27 #include "webkit/glue/webkit_glue.h"
26 28
27 using WebKit::WebDataSource; 29 using WebKit::WebDataSource;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 static_cast<skia::BitmapPlatformDevice&>(canvas.getTopPlatformDevice()); 337 static_cast<skia::BitmapPlatformDevice&>(canvas.getTopPlatformDevice());
336 338
337 const SkBitmap& bitmap = device.accessBitmap(false); 339 const SkBitmap& bitmap = device.accessBitmap(false);
338 if (!bitmap.copyTo(snapshot, SkBitmap::kARGB_8888_Config)) 340 if (!bitmap.copyTo(snapshot, SkBitmap::kARGB_8888_Config))
339 return false; 341 return false;
340 342
341 HISTOGRAM_TIMES("Renderer4.Snapshot", 343 HISTOGRAM_TIMES("Renderer4.Snapshot",
342 base::TimeTicks::Now() - beginning_time); 344 base::TimeTicks::Now() - beginning_time);
343 return true; 345 return true;
344 } 346 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698