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 #include "chrome/browser/instant/instant_loader.h" | 5 #include "chrome/browser/instant/instant_loader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/notification_details.h" | 32 #include "chrome/common/notification_details.h" |
33 #include "chrome/common/notification_observer.h" | 33 #include "chrome/common/notification_observer.h" |
34 #include "chrome/common/notification_registrar.h" | 34 #include "chrome/common/notification_registrar.h" |
35 #include "chrome/common/notification_service.h" | 35 #include "chrome/common/notification_service.h" |
36 #include "chrome/common/notification_source.h" | 36 #include "chrome/common/notification_source.h" |
37 #include "chrome/common/notification_type.h" | 37 #include "chrome/common/notification_type.h" |
38 #include "chrome/common/page_transition_types.h" | 38 #include "chrome/common/page_transition_types.h" |
39 #include "chrome/common/render_messages.h" | 39 #include "chrome/common/render_messages.h" |
40 #include "chrome/common/renderer_preferences.h" | 40 #include "chrome/common/renderer_preferences.h" |
41 #include "gfx/codec/png_codec.h" | |
42 #include "ipc/ipc_message.h" | 41 #include "ipc/ipc_message.h" |
43 #include "net/http/http_util.h" | 42 #include "net/http/http_util.h" |
44 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
| 44 #include "ui/gfx/codec/png_codec.h" |
45 | 45 |
46 namespace { | 46 namespace { |
47 | 47 |
48 // Number of ms to delay before updating the omnibox bounds. This is only used | 48 // Number of ms to delay before updating the omnibox bounds. This is only used |
49 // when the bounds of the omnibox shrinks. If the bounds grows, we update | 49 // when the bounds of the omnibox shrinks. If the bounds grows, we update |
50 // immediately. | 50 // immediately. |
51 const int kUpdateBoundsDelayMS = 1000; | 51 const int kUpdateBoundsDelayMS = 1000; |
52 | 52 |
53 // If this status code is seen instant is disabled for the specified host. | 53 // If this status code is seen instant is disabled for the specified host. |
54 const int kHostBlacklistStatusCode = 403; | 54 const int kHostBlacklistStatusCode = 403; |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 Source<NavigationController>(&preview_contents_->controller())); | 783 Source<NavigationController>(&preview_contents_->controller())); |
784 #endif | 784 #endif |
785 | 785 |
786 registrar_.Add( | 786 registrar_.Add( |
787 this, | 787 this, |
788 NotificationType::NAV_ENTRY_COMMITTED, | 788 NotificationType::NAV_ENTRY_COMMITTED, |
789 Source<NavigationController>(&preview_contents_->controller())); | 789 Source<NavigationController>(&preview_contents_->controller())); |
790 | 790 |
791 preview_contents_->tab_contents()->ShowContents(); | 791 preview_contents_->tab_contents()->ShowContents(); |
792 } | 792 } |
OLD | NEW |