OLD | NEW |
1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
(...skipping 20 matching lines...) Expand all Loading... |
32 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 32 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
33 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 33 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
34 #include "chrome/common/notification_registrar.h" | 34 #include "chrome/common/notification_registrar.h" |
35 #include "chrome/common/property_bag.h" | 35 #include "chrome/common/property_bag.h" |
36 #include "chrome/common/renderer_preferences.h" | 36 #include "chrome/common/renderer_preferences.h" |
37 #include "chrome/common/translate_errors.h" | 37 #include "chrome/common/translate_errors.h" |
38 #include "chrome/common/web_apps.h" | 38 #include "chrome/common/web_apps.h" |
39 #include "gfx/native_widget_types.h" | 39 #include "gfx/native_widget_types.h" |
40 #include "net/base/load_states.h" | 40 #include "net/base/load_states.h" |
41 | 41 |
| 42 #if defined(OS_WIN) |
| 43 #include "base/win/scoped_handle.h" |
| 44 #endif |
| 45 |
42 namespace gfx { | 46 namespace gfx { |
43 class Rect; | 47 class Rect; |
44 } | 48 } |
45 | 49 |
46 namespace history { | 50 namespace history { |
47 class HistoryAddPageArgs; | 51 class HistoryAddPageArgs; |
48 } | 52 } |
49 | 53 |
50 namespace printing { | 54 namespace printing { |
51 class PrintViewManager; | 55 class PrintViewManager; |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 bool notify_disconnection_; | 1277 bool notify_disconnection_; |
1274 | 1278 |
1275 // Maps from handle to page_id. | 1279 // Maps from handle to page_id. |
1276 typedef std::map<FaviconService::Handle, int32> HistoryRequestMap; | 1280 typedef std::map<FaviconService::Handle, int32> HistoryRequestMap; |
1277 HistoryRequestMap history_requests_; | 1281 HistoryRequestMap history_requests_; |
1278 | 1282 |
1279 #if defined(OS_WIN) | 1283 #if defined(OS_WIN) |
1280 // Handle to an event that's set when the page is showing a message box (or | 1284 // Handle to an event that's set when the page is showing a message box (or |
1281 // equivalent constrained window). Plugin processes check this to know if | 1285 // equivalent constrained window). Plugin processes check this to know if |
1282 // they should pump messages then. | 1286 // they should pump messages then. |
1283 ScopedHandle message_box_active_; | 1287 base::win::ScopedHandle message_box_active_; |
1284 #endif | 1288 #endif |
1285 | 1289 |
1286 // The time that the last javascript message was dismissed. | 1290 // The time that the last javascript message was dismissed. |
1287 base::TimeTicks last_javascript_message_dismissal_; | 1291 base::TimeTicks last_javascript_message_dismissal_; |
1288 | 1292 |
1289 // True if the user has decided to block future javascript messages. This is | 1293 // True if the user has decided to block future javascript messages. This is |
1290 // reset on navigations to false on navigations. | 1294 // reset on navigations to false on navigations. |
1291 bool suppress_javascript_messages_; | 1295 bool suppress_javascript_messages_; |
1292 | 1296 |
1293 // Set to true when there is an active "before unload" dialog. When true, | 1297 // Set to true when there is an active "before unload" dialog. When true, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 // Content restrictions, used to disable print/copy etc based on content's | 1339 // Content restrictions, used to disable print/copy etc based on content's |
1336 // (full-page plugins for now only) permissions. | 1340 // (full-page plugins for now only) permissions. |
1337 int content_restrictions_; | 1341 int content_restrictions_; |
1338 | 1342 |
1339 // --------------------------------------------------------------------------- | 1343 // --------------------------------------------------------------------------- |
1340 | 1344 |
1341 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1345 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1342 }; | 1346 }; |
1343 | 1347 |
1344 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1348 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |