| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
| 9 #include "content/browser/tab_contents/navigation_controller.h" | 9 #include "content/browser/tab_contents/navigation_controller.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 int error_code, | 68 int error_code, |
| 69 const string16& error_description); | 69 const string16& error_description); |
| 70 virtual void DidGetUserGesture(); | 70 virtual void DidGetUserGesture(); |
| 71 virtual void DidGetIgnoredUIEvent(); | 71 virtual void DidGetIgnoredUIEvent(); |
| 72 virtual void DidBecomeSelected(); | 72 virtual void DidBecomeSelected(); |
| 73 | 73 |
| 74 virtual void DidStartLoading(); | 74 virtual void DidStartLoading(); |
| 75 virtual void DidStopLoading(); | 75 virtual void DidStopLoading(); |
| 76 virtual void StopNavigation(); | 76 virtual void StopNavigation(); |
| 77 | 77 |
| 78 // TODO(supersat): Add opener_frame_id and/or other parameters when I finalize
the API |
| 78 virtual void DidOpenURL(const GURL& url, | 79 virtual void DidOpenURL(const GURL& url, |
| 79 const content::Referrer& referrer, | 80 const content::Referrer& referrer, |
| 80 WindowOpenDisposition disposition, | 81 WindowOpenDisposition disposition, |
| 81 content::PageTransition transition); | 82 content::PageTransition transition); |
| 82 | 83 |
| 84 // TODO(supersat): Add opener_frame_id and/or other parameters when I finalize
the API |
| 83 virtual void DidOpenRequestedURL(TabContents* new_contents, | 85 virtual void DidOpenRequestedURL(TabContents* new_contents, |
| 84 const GURL& url, | 86 const GURL& url, |
| 85 const content::Referrer& referrer, | 87 const content::Referrer& referrer, |
| 86 WindowOpenDisposition disposition, | 88 WindowOpenDisposition disposition, |
| 87 content::PageTransition transition, | 89 content::PageTransition transition, |
| 88 int64 source_frame_id); | 90 int64 source_frame_id); |
| 89 | 91 |
| 90 virtual void AppCacheAccessed(const GURL& manifest_url, | 92 virtual void AppCacheAccessed(const GURL& manifest_url, |
| 91 bool blocked_by_policy); | 93 bool blocked_by_policy); |
| 92 #if 0 | 94 #if 0 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out | 141 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out |
| 140 // |tab_contents_|. | 142 // |tab_contents_|. |
| 141 void TabContentsDestroyed(); | 143 void TabContentsDestroyed(); |
| 142 | 144 |
| 143 TabContents* tab_contents_; | 145 TabContents* tab_contents_; |
| 144 | 146 |
| 145 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); | 147 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 150 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |