| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser/banners/app_banner_manager.h" | 5 #include "chrome/browser/banners/app_banner_manager.h" |
| 6 | 6 |
| 7 #include "chrome/browser/banners/app_banner_data_fetcher.h" | 7 #include "chrome/browser/banners/app_banner_data_fetcher.h" |
| 8 #include "chrome/browser/banners/app_banner_debug_log.h" | 8 #include "chrome/browser/banners/app_banner_debug_log.h" |
| 9 #include "chrome/browser/banners/app_banner_settings_helper.h" | 9 #include "chrome/browser/banners/app_banner_settings_helper.h" |
| 10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 11 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
| 13 #include "content/public/common/frame_navigate_params.h" | 13 #include "content/public/common/frame_navigate_params.h" |
| 14 #include "content/public/common/origin_util.h" | 14 #include "content/public/common/origin_util.h" |
| 15 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
| 16 #include "ui/gfx/screen.h" | |
| 17 | 16 |
| 18 namespace { | 17 namespace { |
| 19 bool gDisableSecureCheckForTesting = false; | 18 bool gDisableSecureCheckForTesting = false; |
| 20 } // anonymous namespace | 19 } // anonymous namespace |
| 21 | 20 |
| 22 namespace banners { | 21 namespace banners { |
| 23 | 22 |
| 24 void AppBannerManager::DisableSecureSchemeCheckForTesting() { | 23 void AppBannerManager::DisableSecureSchemeCheckForTesting() { |
| 25 gDisableSecureCheckForTesting = true; | 24 gDisableSecureCheckForTesting = true; |
| 26 } | 25 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 116 } |
| 118 | 117 |
| 119 void AppBannerManager::CancelActiveFetcher() { | 118 void AppBannerManager::CancelActiveFetcher() { |
| 120 if (data_fetcher_ != nullptr) { | 119 if (data_fetcher_ != nullptr) { |
| 121 data_fetcher_->Cancel(); | 120 data_fetcher_->Cancel(); |
| 122 data_fetcher_ = nullptr; | 121 data_fetcher_ = nullptr; |
| 123 } | 122 } |
| 124 } | 123 } |
| 125 | 124 |
| 126 } // namespace banners | 125 } // namespace banners |
| OLD | NEW |