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 // Implementation of ChromeActiveDocument | 5 // Implementation of ChromeActiveDocument |
6 #include "chrome_frame/chrome_active_document.h" | 6 #include "chrome_frame/chrome_active_document.h" |
7 | 7 |
8 #include <hlink.h> | 8 #include <hlink.h> |
9 #include <htiface.h> | 9 #include <htiface.h> |
10 #include <initguid.h> | 10 #include <initguid.h> |
11 #include <mshtmcid.h> | 11 #include <mshtmcid.h> |
12 #include <shdeprecated.h> | 12 #include <shdeprecated.h> |
13 #include <shlguid.h> | 13 #include <shlguid.h> |
14 #include <shlobj.h> | 14 #include <shlobj.h> |
15 #include <shobjidl.h> | 15 #include <shobjidl.h> |
16 #include <tlogstg.h> | 16 #include <tlogstg.h> |
17 #include <urlmon.h> | 17 #include <urlmon.h> |
18 #include <wininet.h> | 18 #include <wininet.h> |
19 | 19 |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/debug/trace_event.h" | 21 #include "base/debug/trace_event.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
25 #include "base/win/scoped_variant.h" | 25 #include "base/win/scoped_variant.h" |
26 #include "chrome/app/chrome_command_ids.h" | 26 #include "chrome/app/chrome_command_ids.h" |
27 #include "chrome/app/chrome_dll_resource.h" | 27 #include "chrome/app/chrome_dll_resource.h" |
28 #include "chrome/common/automation_messages.h" | 28 #include "chrome/common/automation_messages.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/test/automation/browser_proxy.h" | 30 #include "chrome/test/automation/browser_proxy.h" |
31 #include "chrome/test/automation/tab_proxy.h" | 31 #include "chrome/test/automation/tab_proxy.h" |
32 #include "chrome_frame/bho.h" | 32 #include "chrome_frame/bho.h" |
33 #include "chrome_frame/bind_context_info.h" | 33 #include "chrome_frame/bind_context_info.h" |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 | 1431 |
1432 return false; | 1432 return false; |
1433 } | 1433 } |
1434 | 1434 |
1435 bool ChromeActiveDocument::IsFirstNavigation( | 1435 bool ChromeActiveDocument::IsFirstNavigation( |
1436 const NavigationInfo& new_navigation_info) const { | 1436 const NavigationInfo& new_navigation_info) const { |
1437 return (navigation_info_->url.is_empty() && | 1437 return (navigation_info_->url.is_empty() && |
1438 new_navigation_info.navigation_type == | 1438 new_navigation_info.navigation_type == |
1439 content::NAVIGATION_TYPE_NEW_PAGE); | 1439 content::NAVIGATION_TYPE_NEW_PAGE); |
1440 } | 1440 } |
OLD | NEW |