| 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> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/strings/string_number_conversions.h" | |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 18 #include "chrome/common/chrome_isolated_world_ids.h" | 17 #include "chrome/common/chrome_isolated_world_ids.h" |
| 19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/crash_keys.h" | 19 #include "chrome/common/crash_keys.h" |
| 21 #include "chrome/common/prerender_messages.h" | 20 #include "chrome/common/prerender_messages.h" |
| 22 #include "chrome/common/render_messages.h" | 21 #include "chrome/common/render_messages.h" |
| 23 #include "chrome/renderer/prerender/prerender_helper.h" | 22 #include "chrome/renderer/prerender/prerender_helper.h" |
| 24 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 23 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
| 25 #include "components/translate/content/renderer/translate_helper.h" | 24 #include "components/translate/content/renderer/translate_helper.h" |
| 26 #include "content/public/common/ssl_status.h" | |
| 27 #include "content/public/renderer/render_frame.h" | 25 #include "content/public/renderer/render_frame.h" |
| 28 #include "content/public/renderer/render_view.h" | 26 #include "content/public/renderer/render_view.h" |
| 29 #include "extensions/common/constants.h" | 27 #include "extensions/common/constants.h" |
| 30 #include "net/base/url_util.h" | 28 #include "net/base/url_util.h" |
| 31 #include "skia/ext/image_operations.h" | 29 #include "skia/ext/image_operations.h" |
| 32 #include "third_party/WebKit/public/platform/WebImage.h" | 30 #include "third_party/WebKit/public/platform/WebImage.h" |
| 33 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | 31 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" |
| 34 #include "third_party/WebKit/public/web/WebDataSource.h" | 32 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 35 #include "third_party/WebKit/public/web/WebDocument.h" | 33 #include "third_party/WebKit/public/web/WebDocument.h" |
| 36 #include "third_party/WebKit/public/web/WebElement.h" | 34 #include "third_party/WebKit/public/web/WebElement.h" |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 case blink::WebMeaningfulLayout::FinishedParsing: | 385 case blink::WebMeaningfulLayout::FinishedParsing: |
| 388 CapturePageText(PRELIMINARY_CAPTURE); | 386 CapturePageText(PRELIMINARY_CAPTURE); |
| 389 break; | 387 break; |
| 390 case blink::WebMeaningfulLayout::FinishedLoading: | 388 case blink::WebMeaningfulLayout::FinishedLoading: |
| 391 CapturePageText(FINAL_CAPTURE); | 389 CapturePageText(FINAL_CAPTURE); |
| 392 break; | 390 break; |
| 393 default: | 391 default: |
| 394 break; | 392 break; |
| 395 } | 393 } |
| 396 } | 394 } |
| OLD | NEW |