| 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_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/timer.h" | 15 #include "base/timer.h" |
| 16 #include "chrome/browser/instant/instant_commit_type.h" | 16 #include "chrome/browser/instant/instant_commit_type.h" |
| 17 #include "chrome/browser/search_engines/template_url_id.h" | 17 #include "chrome/browser/search_engines/template_url_id.h" |
| 18 #include "chrome/common/instant_types.h" | 18 #include "chrome/common/instant_types.h" |
| 19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 21 #include "content/public/common/page_transition_types.h" | 21 #include "content/public/common/page_transition_types.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| 24 | 24 |
| 25 class InstantLoaderDelegate; | 25 class InstantLoaderDelegate; |
| 26 class InstantLoaderManagerTest; | 26 class InstantLoaderManagerTest; |
| 27 class TabContentsWrapper; | 27 class TabContents; |
| 28 typedef TabContents TabContentsWrapper; |
| 28 class TemplateURL; | 29 class TemplateURL; |
| 29 | 30 |
| 30 namespace content { | 31 namespace content { |
| 31 class SessionStorageNamespace; | 32 class SessionStorageNamespace; |
| 32 } | 33 } |
| 33 | 34 |
| 34 // InstantLoader does the loading of a particular URL for InstantController. | 35 // InstantLoader does the loading of a particular URL for InstantController. |
| 35 // InstantLoader notifies its delegate, which is typically InstantController, of | 36 // InstantLoader notifies its delegate, which is typically InstantController, of |
| 36 // all interesting events. | 37 // all interesting events. |
| 37 // | 38 // |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 std::string group_; | 257 std::string group_; |
| 257 | 258 |
| 258 // The session storage namespace identifier of the original tab contents that | 259 // The session storage namespace identifier of the original tab contents that |
| 259 // the preview_contents_ was based upon. | 260 // the preview_contents_ was based upon. |
| 260 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_; | 261 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_; |
| 261 | 262 |
| 262 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 263 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 266 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
| OLD | NEW |