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

Side by Side Diff: content/browser/frame_host/data_url_navigation_throttle.h

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_
6 #define CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_ 6 #define CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/public/browser/navigation_throttle.h" 11 #include "content/public/browser/navigation_throttle.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class DataUrlNavigationThrottle : public NavigationThrottle { 15 class DataUrlNavigationThrottle : public NavigationThrottle {
16 public: 16 public:
17 explicit DataUrlNavigationThrottle(NavigationHandle* navigation_handle); 17 explicit DataUrlNavigationThrottle(NavigationHandle* navigation_handle);
18 ~DataUrlNavigationThrottle() override; 18 ~DataUrlNavigationThrottle() override;
19 19
20 // NavigationThrottle method: 20 // NavigationThrottle method:
21 ThrottleCheckResult WillProcessResponse() override; 21 ThrottleCheckResult WillProcessResponse() override;
22 const char* GetNameForLogging() override;
22 23
23 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( 24 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation(
24 NavigationHandle* navigation_handle); 25 NavigationHandle* navigation_handle);
25 26
26 private: 27 private:
27 DISALLOW_COPY_AND_ASSIGN(DataUrlNavigationThrottle); 28 DISALLOW_COPY_AND_ASSIGN(DataUrlNavigationThrottle);
28 }; 29 };
29 30
30 } // namespace content 31 } // namespace content
31 32
32 #endif // CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_ 33 #endif // CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_
OLDNEW
« no previous file with comments | « content/browser/frame_host/ancestor_throttle.cc ('k') | content/browser/frame_host/data_url_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698