Chromium Code Reviews| 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 | 231 |
| 232 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 232 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 233 | 233 |
| 234 // Whether the tab is in the process of being destroyed. | 234 // Whether the tab is in the process of being destroyed. |
| 235 virtual bool IsBeingDestroyed() const = 0; | 235 virtual bool IsBeingDestroyed() const = 0; |
| 236 | 236 |
| 237 // Convenience method for notifying the delegate of a navigation state | 237 // Convenience method for notifying the delegate of a navigation state |
| 238 // change. See InvalidateType enum. | 238 // change. See InvalidateType enum. |
| 239 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; | 239 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; |
| 240 | 240 |
| 241 // Method for notifying observers about visible SSL state change. | |
| 242 virtual void NotifyVisibleSSLStateChanged() = 0; | |
|
jam
2013/01/24 02:02:19
chrome shouldn't have to call into content to noti
Paweł Hajdan Jr.
2013/01/24 18:53:43
Done.
| |
| 243 | |
| 241 // Get the last time that the WebContents was made visible with WasShown() | 244 // Get the last time that the WebContents was made visible with WasShown() |
| 242 virtual base::TimeTicks GetLastSelectedTime() const = 0; | 245 virtual base::TimeTicks GetLastSelectedTime() const = 0; |
| 243 | 246 |
| 244 // Invoked when the WebContents becomes shown/hidden. | 247 // Invoked when the WebContents becomes shown/hidden. |
| 245 virtual void WasShown() = 0; | 248 virtual void WasShown() = 0; |
| 246 virtual void WasHidden() = 0; | 249 virtual void WasHidden() = 0; |
| 247 | 250 |
| 248 // Returns true if the before unload and unload listeners need to be | 251 // Returns true if the before unload and unload listeners need to be |
| 249 // fired. The value of this changes over time. For example, if true and the | 252 // fired. The value of this changes over time. For example, if true and the |
| 250 // before unload listener is executed and allows the user to exit, then this | 253 // before unload listener is executed and allows the user to exit, then this |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 434 // is not resized to the given image_size. If 0 is passed, the first frame of | 437 // is not resized to the given image_size. If 0 is passed, the first frame of |
| 435 // the image is returned. | 438 // the image is returned. |
| 436 virtual int DownloadFavicon(const GURL& url, int image_size, | 439 virtual int DownloadFavicon(const GURL& url, int image_size, |
| 437 const FaviconDownloadCallback& callback) = 0; | 440 const FaviconDownloadCallback& callback) = 0; |
| 438 | 441 |
| 439 }; | 442 }; |
| 440 | 443 |
| 441 } // namespace content | 444 } // namespace content |
| 442 | 445 |
| 443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 446 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |