| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Returns the bounds of instant. | 29 // Returns the bounds of instant. |
| 30 virtual gfx::Rect GetInstantBounds() = 0; | 30 virtual gfx::Rect GetInstantBounds() = 0; |
| 31 | 31 |
| 32 // Returns true if instant should be committed on mouse up. | 32 // Returns true if instant should be committed on mouse up. |
| 33 virtual bool ShouldCommitInstantOnMouseUp() = 0; | 33 virtual bool ShouldCommitInstantOnMouseUp() = 0; |
| 34 | 34 |
| 35 // Invoked when the the loader should be committed. | 35 // Invoked when the the loader should be committed. |
| 36 virtual void CommitInstantLoader(InstantLoader* loader) = 0; | 36 virtual void CommitInstantLoader(InstantLoader* loader) = 0; |
| 37 | 37 |
| 38 // Invoked if the loader was created with the intention that the site supports | 38 // Invoked if the loader was created with the intention that the site supports |
| 39 // instant, but it turned out the site doesn't support instant. If | 39 // instant, but it turned out the site doesn't support instant. |
| 40 // |needs_reload| is true, |Update| was invoked on the loader with a url that | 40 virtual void InstantLoaderDoesntSupportInstant(InstantLoader* loader) = 0; |
| 41 // has changed since the initial url, and |url_to_load| is that url. | |
| 42 virtual void InstantLoaderDoesntSupportInstant(InstantLoader* loader, | |
| 43 bool needs_reload, | |
| 44 const GURL& url_to_load) = 0; | |
| 45 | 41 |
| 46 // Adds the specified url to the set of urls instant won't prefetch for. | 42 // Adds the specified url to the set of urls instant won't prefetch for. |
| 47 virtual void AddToBlacklist(InstantLoader* loader, const GURL& url) = 0; | 43 virtual void AddToBlacklist(InstantLoader* loader, const GURL& url) = 0; |
| 48 | 44 |
| 49 protected: | 45 protected: |
| 50 virtual ~InstantLoaderDelegate() {} | 46 virtual ~InstantLoaderDelegate() {} |
| 51 }; | 47 }; |
| 52 | 48 |
| 53 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 49 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
| OLD | NEW |