Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / tracing / navigation_tracing.h
blob80835caaa8f0833027d33f30ef8f6bd319ae028c
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_TRACING_NAVIGATION_TRACING_H_
6 #define CHROME_BROWSER_TRACING_NAVIGATION_TRACING_H_
8 #include "content/public/browser/background_tracing_manager.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h"
12 namespace tracing {
14 void SetupNavigationTracing();
16 class NavigationTracingObserver
17 : public content::WebContentsObserver,
18 public content::WebContentsUserData<NavigationTracingObserver> {
19 private:
20 friend class content::WebContentsUserData<NavigationTracingObserver>;
22 explicit NavigationTracingObserver(content::WebContents* web_contents);
24 ~NavigationTracingObserver() override;
26 // content::WebContentsObserver implementation.
27 void DidStartProvisionalLoadForFrame(
28 content::RenderFrameHost* render_frame_host,
29 const GURL& validated_url,
30 bool is_error_page,
31 bool is_iframe_srcdoc) override;
33 static content::BackgroundTracingManager::TriggerHandle navigation_handle;
35 DISALLOW_COPY_AND_ASSIGN(NavigationTracingObserver);
38 } // namespace tracing
40 #endif // CHROME_BROWSER_TRACING_NAVIGATION_TRACING_H_