OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_observer.h" | 5 #include "chrome/renderer/chrome_render_frame_observer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <limits> | 9 #include <limits> |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
12 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "build/build_config.h" |
14 #include "chrome/common/chrome_isolated_world_ids.h" | 17 #include "chrome/common/chrome_isolated_world_ids.h" |
15 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/crash_keys.h" | 19 #include "chrome/common/crash_keys.h" |
17 #include "chrome/common/prerender_messages.h" | 20 #include "chrome/common/prerender_messages.h" |
18 #include "chrome/common/render_messages.h" | 21 #include "chrome/common/render_messages.h" |
19 #include "chrome/renderer/prerender/prerender_helper.h" | 22 #include "chrome/renderer/prerender/prerender_helper.h" |
20 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 23 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
21 #include "components/printing/common/print_messages.h" | 24 #include "components/printing/common/print_messages.h" |
22 #include "components/printing/renderer/print_web_view_helper.h" | 25 #include "components/printing/renderer/print_web_view_helper.h" |
23 #include "components/translate/content/renderer/translate_helper.h" | 26 #include "components/translate/content/renderer/translate_helper.h" |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 418 |
416 TRACE_EVENT0("renderer", "ChromeRenderViewObserver::CapturePageInfo"); | 419 TRACE_EVENT0("renderer", "ChromeRenderViewObserver::CapturePageInfo"); |
417 | 420 |
418 #if defined(FULL_SAFE_BROWSING) | 421 #if defined(FULL_SAFE_BROWSING) |
419 // Will swap out the string. | 422 // Will swap out the string. |
420 if (phishing_classifier_) | 423 if (phishing_classifier_) |
421 phishing_classifier_->PageCaptured(content, | 424 phishing_classifier_->PageCaptured(content, |
422 capture_type == PRELIMINARY_CAPTURE); | 425 capture_type == PRELIMINARY_CAPTURE); |
423 #endif | 426 #endif |
424 } | 427 } |
OLD | NEW |