OLD | NEW |
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_PRERENDER_PRERENDER_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public content::WebContentsUserData<PrerenderTabHelper> { | 27 public content::WebContentsUserData<PrerenderTabHelper> { |
28 public: | 28 public: |
29 enum Event { | 29 enum Event { |
30 EVENT_LOGGED_IN_TABLE_REQUESTED = 0, | 30 EVENT_LOGGED_IN_TABLE_REQUESTED = 0, |
31 EVENT_LOGGED_IN_TABLE_PRESENT = 1, | 31 EVENT_LOGGED_IN_TABLE_PRESENT = 1, |
32 EVENT_MAINFRAME_CHANGE = 2, | 32 EVENT_MAINFRAME_CHANGE = 2, |
33 EVENT_MAINFRAME_CHANGE_DOMAIN_LOGGED_IN = 3, | 33 EVENT_MAINFRAME_CHANGE_DOMAIN_LOGGED_IN = 3, |
34 EVENT_MAINFRAME_COMMIT = 4, | 34 EVENT_MAINFRAME_COMMIT = 4, |
35 EVENT_MAINFRAME_COMMIT_DOMAIN_LOGGED_IN = 5, | 35 EVENT_MAINFRAME_COMMIT_DOMAIN_LOGGED_IN = 5, |
36 EVENT_LOGIN_ACTION_ADDED = 6, | 36 EVENT_LOGIN_ACTION_ADDED = 6, |
| 37 EVENT_LOGIN_ACTION_ADDED_MAINFRAME = 7, |
| 38 EVENT_LOGIN_ACTION_ADDED_MAINFRAME_PW_EMPTY = 8, |
| 39 EVENT_LOGIN_ACTION_ADDED_SUBFRAME = 9, |
| 40 EVENT_LOGIN_ACTION_ADDED_SUBFRAME_PW_EMPTY = 10, |
37 EVENT_MAX_VALUE | 41 EVENT_MAX_VALUE |
38 }; | 42 }; |
39 | 43 |
40 virtual ~PrerenderTabHelper(); | 44 virtual ~PrerenderTabHelper(); |
41 | 45 |
42 // content::WebContentsObserver implementation. | 46 // content::WebContentsObserver implementation. |
43 virtual void ProvisionalChangeToMainFrameUrl( | 47 virtual void ProvisionalChangeToMainFrameUrl( |
44 const GURL& url, | 48 const GURL& url, |
45 content::RenderViewHost* render_view_host) OVERRIDE; | 49 content::RenderViewHost* render_view_host) OVERRIDE; |
46 virtual void DidStopLoading( | 50 virtual void DidStopLoading( |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 GURL url_; | 106 GURL url_; |
103 | 107 |
104 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; | 108 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; |
105 | 109 |
106 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 110 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
107 }; | 111 }; |
108 | 112 |
109 } // namespace prerender | 113 } // namespace prerender |
110 | 114 |
111 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 115 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
OLD | NEW |