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 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 #include "chrome/common/instant_types.h" | 10 #include "chrome/common/instant_types.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // Invoked when the the loader should be committed. | 38 // Invoked when the the loader should be committed. |
39 virtual void CommitInstantLoader(InstantLoader* loader) = 0; | 39 virtual void CommitInstantLoader(InstantLoader* loader) = 0; |
40 | 40 |
41 // Invoked if the loader was created with the intention that the site supports | 41 // Invoked if the loader was created with the intention that the site supports |
42 // instant, but it turned out the site doesn't support instant. | 42 // instant, but it turned out the site doesn't support instant. |
43 virtual void InstantLoaderDoesntSupportInstant(InstantLoader* loader) = 0; | 43 virtual void InstantLoaderDoesntSupportInstant(InstantLoader* loader) = 0; |
44 | 44 |
45 // Adds the specified url to the set of urls instant won't prefetch for. | 45 // Adds the specified url to the set of urls instant won't prefetch for. |
46 virtual void AddToBlacklist(InstantLoader* loader, const GURL& url) = 0; | 46 virtual void AddToBlacklist(InstantLoader* loader, const GURL& url) = 0; |
47 | 47 |
| 48 // Invoked if the loader swaps to a different TabContents. |
| 49 virtual void SwappedTabContents(InstantLoader* loader) = 0; |
| 50 |
48 protected: | 51 protected: |
49 virtual ~InstantLoaderDelegate() {} | 52 virtual ~InstantLoaderDelegate() {} |
50 }; | 53 }; |
51 | 54 |
52 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 55 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
OLD | NEW |