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_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. | 48 // Invoked if the loader swaps to a different WebContents. |
49 virtual void SwappedTabContents(InstantLoader* loader) = 0; | 49 virtual void SwappedTabContents(InstantLoader* loader) = 0; |
50 | 50 |
51 // Invoked when the webcontents created by the loader is focused. | 51 // Invoked when the webcontents created by the loader is focused. |
52 virtual void InstantLoaderContentsFocused() = 0; | 52 virtual void InstantLoaderContentsFocused() = 0; |
53 | 53 |
54 protected: | 54 protected: |
55 virtual ~InstantLoaderDelegate() {} | 55 virtual ~InstantLoaderDelegate() {} |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_ |
OLD | NEW |