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

Side by Side Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.h

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPERS_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPERS_ H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPERS_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPERS_ H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/public/common/page_transition_types.h" 11 #include "ui/base/page_transition_types.h"
12 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 class RenderFrameHost; 15 class RenderFrameHost;
16 class WebContents; 16 class WebContents;
17 } 17 }
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 namespace web_navigation_api_helpers { 23 namespace web_navigation_api_helpers {
24 24
25 // Returns the frame ID as it will be passed to the extension: 25 // Returns the frame ID as it will be passed to the extension:
26 // 0 if the navigation happens in the main frame, or the frame routing ID 26 // 0 if the navigation happens in the main frame, or the frame routing ID
27 // otherwise. 27 // otherwise.
28 int GetFrameId(content::RenderFrameHost* frame_host); 28 int GetFrameId(content::RenderFrameHost* frame_host);
29 29
30 // Create and dispatch the various events of the webNavigation API. 30 // Create and dispatch the various events of the webNavigation API.
31 void DispatchOnBeforeNavigate(content::WebContents* web_contents, 31 void DispatchOnBeforeNavigate(content::WebContents* web_contents,
32 content::RenderFrameHost* frame_host, 32 content::RenderFrameHost* frame_host,
33 const GURL& validated_url); 33 const GURL& validated_url);
34 34
35 void DispatchOnCommitted(const std::string& event_name, 35 void DispatchOnCommitted(const std::string& event_name,
36 content::WebContents* web_contents, 36 content::WebContents* web_contents,
37 content::RenderFrameHost* frame_host, 37 content::RenderFrameHost* frame_host,
38 const GURL& url, 38 const GURL& url,
39 content::PageTransition transition_type); 39 ui::PageTransition transition_type);
40 40
41 void DispatchOnDOMContentLoaded(content::WebContents* web_contents, 41 void DispatchOnDOMContentLoaded(content::WebContents* web_contents,
42 content::RenderFrameHost* frame_host, 42 content::RenderFrameHost* frame_host,
43 const GURL& url); 43 const GURL& url);
44 44
45 void DispatchOnCompleted(content::WebContents* web_contents, 45 void DispatchOnCompleted(content::WebContents* web_contents,
46 content::RenderFrameHost* frame_host, 46 content::RenderFrameHost* frame_host,
47 const GURL& url); 47 const GURL& url);
48 48
49 void DispatchOnCreatedNavigationTarget( 49 void DispatchOnCreatedNavigationTarget(
(...skipping 11 matching lines...) Expand all
61 void DispatchOnTabReplaced( 61 void DispatchOnTabReplaced(
62 content::WebContents* old_web_contents, 62 content::WebContents* old_web_contents,
63 content::BrowserContext* browser_context, 63 content::BrowserContext* browser_context,
64 content::WebContents* new_web_contents); 64 content::WebContents* new_web_contents);
65 65
66 } // namespace web_navigation_api_helpers 66 } // namespace web_navigation_api_helpers
67 67
68 } // namespace extensions 68 } // namespace extensions
69 69
70 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPE RS_H_ 70 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_HELPE RS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698