Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome_frame/chrome_frame_activex_base.h

Issue 6386025: Disabling building of CEEE; we will be moving the code to a separate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to head Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/test/chrome_frame_activex_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <atlctl.h> 10 #include <atlctl.h>
11 #include <wininet.h> 11 #include <wininet.h>
12 #include <shdeprecated.h> // for IBrowserService2 12 #include <shdeprecated.h> // for IBrowserService2
13 #include <shlguid.h> 13 #include <shlguid.h>
14 14
15 #include <set> 15 #include <set>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "base/stringprintf.h" 21 #include "base/stringprintf.h"
22 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
23 #include "base/win/scoped_bstr.h" 23 #include "base/win/scoped_bstr.h"
24 #include "base/win/scoped_comptr.h" 24 #include "base/win/scoped_comptr.h"
25 #include "base/win/scoped_variant.h" 25 #include "base/win/scoped_variant.h"
26 #include "grit/chrome_frame_resources.h" 26 #include "grit/chrome_frame_resources.h"
27 #include "ceee/ie/common/ceee_util.h"
28 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
29 #include "chrome_frame/chrome_frame_plugin.h" 28 #include "chrome_frame/chrome_frame_plugin.h"
30 #include "chrome_frame/com_message_event.h" 29 #include "chrome_frame/com_message_event.h"
31 #include "chrome_frame/com_type_info_holder.h" 30 #include "chrome_frame/com_type_info_holder.h"
32 #include "chrome_frame/simple_resource_loader.h" 31 #include "chrome_frame/simple_resource_loader.h"
33 #include "chrome_frame/urlmon_url_request.h" 32 #include "chrome_frame/urlmon_url_request.h"
34 #include "chrome_frame/urlmon_url_request_private.h" 33 #include "chrome_frame/urlmon_url_request_private.h"
35 #include "chrome_frame/utils.h" 34 #include "chrome_frame/utils.h"
36 #include "grit/generated_resources.h" 35 #include "grit/generated_resources.h"
37 #include "net/base/cookie_monster.h" 36 #include "net/base/cookie_monster.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return true; 390 return true;
392 } 391 }
393 392
394 protected: 393 protected:
395 virtual void GetProfilePath(const std::wstring& profile_name, 394 virtual void GetProfilePath(const std::wstring& profile_name,
396 FilePath* profile_path) { 395 FilePath* profile_path) {
397 bool is_IE = (lstrcmpi(profile_name.c_str(), kIexploreProfileName) == 0) || 396 bool is_IE = (lstrcmpi(profile_name.c_str(), kIexploreProfileName) == 0) ||
398 (lstrcmpi(profile_name.c_str(), kRundllProfileName) == 0); 397 (lstrcmpi(profile_name.c_str(), kRundllProfileName) == 0);
399 // Browsers without IDeleteBrowsingHistory in non-priv mode 398 // Browsers without IDeleteBrowsingHistory in non-priv mode
400 // have their profiles moved into "Temporary Internet Files". 399 // have their profiles moved into "Temporary Internet Files".
401 // 400 if (is_IE && GetIEVersion() < IE_8) {
402 // If CEEE is registered, we must have a persistent profile. We
403 // considered checking if e.g. ceee_ie.dll is loaded in the process
404 // but this gets into edge cases when the user enables the CEEE add-on
405 // after CF is first loaded.
406 if (is_IE && GetIEVersion() < IE_8 && !ceee_util::IsIeCeeeRegistered()) {
407 *profile_path = GetIETemporaryFilesFolder(); 401 *profile_path = GetIETemporaryFilesFolder();
408 *profile_path = profile_path->Append(L"Google Chrome Frame"); 402 *profile_path = profile_path->Append(L"Google Chrome Frame");
409 } else { 403 } else {
410 ChromeFramePlugin::GetProfilePath(profile_name, profile_path); 404 ChromeFramePlugin::GetProfilePath(profile_name, profile_path);
411 } 405 }
412 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value(); 406 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value();
413 } 407 }
414 408
415 void OnLoad(const GURL& url) { 409 void OnLoad(const GURL& url) {
416 if (ready_state_ < READYSTATE_COMPLETE) { 410 if (ready_state_ < READYSTATE_COMPLETE) {
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 EventHandlers onreadystatechanged_; 1271 EventHandlers onreadystatechanged_;
1278 EventHandlers onprivatemessage_; 1272 EventHandlers onprivatemessage_;
1279 EventHandlers onextensionready_; 1273 EventHandlers onextensionready_;
1280 1274
1281 // Handle network requests when host network stack is used. Passed to the 1275 // Handle network requests when host network stack is used. Passed to the
1282 // automation client on initialization. 1276 // automation client on initialization.
1283 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; 1277 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_;
1284 }; 1278 };
1285 1279
1286 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 1280 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/test/chrome_frame_activex_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698