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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on dependent PS Created 4 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
OLDNEW
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 "content/browser/frame_host/navigation_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 10 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
11 #include "content/browser/frame_host/frame_tree_node.h" 11 #include "content/browser/frame_host/frame_tree_node.h"
12 #include "content/browser/frame_host/navigator.h" 12 #include "content/browser/frame_host/navigator.h"
13 #include "content/browser/frame_host/navigator_delegate.h" 13 #include "content/browser/frame_host/navigator_delegate.h"
14 #include "content/browser/loader/loader_io_thread_notifier.h"
14 #include "content/browser/service_worker/service_worker_context_wrapper.h" 15 #include "content/browser/service_worker/service_worker_context_wrapper.h"
15 #include "content/common/frame_messages.h" 16 #include "content/common/frame_messages.h"
16 #include "content/common/resource_request_body_impl.h" 17 #include "content/common/resource_request_body_impl.h"
17 #include "content/public/browser/content_browser_client.h" 18 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/common/browser_side_navigation_policy.h" 19 #include "content/public/common/browser_side_navigation_policy.h"
19 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
20 #include "net/url_request/redirect_info.h" 21 #include "net/url_request/redirect_info.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
22 #include "url/url_constants.h" 23 #include "url/url_constants.h"
23 24
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 GetContentClient()->browser()->CreateThrottlesForNavigation(this); 555 GetContentClient()->browser()->CreateThrottlesForNavigation(this);
555 if (throttles_to_register.size() > 0) { 556 if (throttles_to_register.size() > 0) {
556 throttles_.insert(throttles_.end(), throttles_to_register.begin(), 557 throttles_.insert(throttles_.end(), throttles_to_register.begin(),
557 throttles_to_register.end()); 558 throttles_to_register.end());
558 throttles_to_register.weak_clear(); 559 throttles_to_register.weak_clear();
559 } 560 }
560 std::unique_ptr<NavigationThrottle> devtools_throttle = 561 std::unique_ptr<NavigationThrottle> devtools_throttle =
561 RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this); 562 RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this);
562 if (devtools_throttle) 563 if (devtools_throttle)
563 throttles_.push_back(devtools_throttle.release()); 564 throttles_.push_back(devtools_throttle.release());
565
566 NavigationThrottle* content_size_throttle =
567 LoaderIOThreadNotifier::MaybeCreateThrottle(this);
568 if (content_size_throttle)
569 throttles_.push_back(base::WrapUnique(content_size_throttle));
564 } 570 }
565 571
566 } // namespace content 572 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/DEPS » ('j') | content/browser/loader/content_size_resource_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698