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

Unified Diff: chrome_frame/urlmon_moniker.cc

Issue 6825055: Include base/win/scoped_comptr.h instead of base/scoped_comptr_win.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad indentation, rebase Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/urlmon_bind_status_callback.cc ('k') | chrome_frame/urlmon_upload_data_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/urlmon_moniker.cc
diff --git a/chrome_frame/urlmon_moniker.cc b/chrome_frame/urlmon_moniker.cc
index b7cc23d3c525433e50fb102b1332fa1a353539eb..12ce098bc3d7e6e3918eadab4f8bd125783a9cb8 100644
--- a/chrome_frame/urlmon_moniker.cc
+++ b/chrome_frame/urlmon_moniker.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,8 +11,8 @@
#include "base/utf_string_conversions.h"
#include "chrome_frame/bho.h"
#include "chrome_frame/bind_context_info.h"
-#include "chrome_frame/exception_barrier.h"
#include "chrome_frame/chrome_active_document.h"
+#include "chrome_frame/exception_barrier.h"
#include "chrome_frame/urlmon_bind_status_callback.h"
#include "chrome_frame/utils.h"
#include "chrome_frame/vtable_patch_manager.h"
@@ -38,11 +38,11 @@ HRESULT NavigationManager::NavigateToCurrentUrlInCF(IBrowserService* browser) {
MarkBrowserOnThreadForCFNavigation(browser);
HRESULT hr = S_OK;
- ScopedComPtr<IShellBrowser> shell_browser;
- ScopedComPtr<IBindCtx> bind_context;
+ base::win::ScopedComPtr<IShellBrowser> shell_browser;
+ base::win::ScopedComPtr<IBindCtx> bind_context;
hr = ::CreateAsyncBindCtxEx(NULL, 0, NULL, NULL, bind_context.Receive(), 0);
- ScopedComPtr<IMoniker> moniker;
+ base::win::ScopedComPtr<IMoniker> moniker;
DCHECK(bind_context);
if (SUCCEEDED(hr) &&
SUCCEEDED(hr = ::CreateURLMonikerEx(NULL, url_.c_str(), moniker.Receive(),
@@ -100,7 +100,7 @@ bool MonikerPatch::Initialize() {
return true;
}
- ScopedComPtr<IMoniker> moniker;
+ base::win::ScopedComPtr<IMoniker> moniker;
HRESULT hr = ::CreateURLMoniker(NULL, L"http://localhost/",
moniker.Receive());
DCHECK(SUCCEEDED(hr));
@@ -133,7 +133,7 @@ bool ShouldWrapCallback(IMoniker* moniker, REFIID iid, IBindCtx* bind_context) {
return false;
}
- ScopedComPtr<BindContextInfo> info;
+ base::win::ScopedComPtr<BindContextInfo> info;
BindContextInfo::FromBindContext(bind_context, info.Receive());
DCHECK(info);
if (info && info->chrome_request()) {
@@ -152,10 +152,10 @@ bool ShouldWrapCallback(IMoniker* moniker, REFIID iid, IBindCtx* bind_context) {
// Check whether request comes from MSHTML by checking for IInternetBindInfo.
// We prefer to avoid wrapping if BindToStorage is called from AcroPDF.dll
// (as a result of OnObjectAvailable)
- ScopedComPtr<IUnknown> bscb_holder;
+ base::win::ScopedComPtr<IUnknown> bscb_holder;
if (S_OK == bind_context->GetObjectParam(L"_BSCB_Holder_",
bscb_holder.Receive())) {
- ScopedComPtr<IBindStatusCallback> bscb;
+ base::win::ScopedComPtr<IBindStatusCallback> bscb;
if (S_OK != DoQueryService(IID_IBindStatusCallback, bscb_holder,
bscb.Receive()))
return false;
@@ -163,7 +163,7 @@ bool ShouldWrapCallback(IMoniker* moniker, REFIID iid, IBindCtx* bind_context) {
if (!bscb.get())
return false;
- ScopedComPtr<IInternetBindInfo> bind_info;
+ base::win::ScopedComPtr<IInternetBindInfo> bind_info;
if (S_OK != bind_info.QueryFrom(bscb))
return false;
}
@@ -171,10 +171,10 @@ bool ShouldWrapCallback(IMoniker* moniker, REFIID iid, IBindCtx* bind_context) {
// TODO(ananta)
// Use the IsSubFrameRequest function to determine if a request is a top
// level request. Something like this.
- // ScopedComPtr<IUnknown> bscb_holder;
+ // base::win::ScopedComPtr<IUnknown> bscb_holder;
// bind_context->GetObjectParam(L"_BSCB_Holder_", bscb_holder.Receive());
// if (bscb_holder) {
- // ScopedComPtr<IHttpNegotiate> http_negotiate;
+ // base::win::ScopedComPtr<IHttpNegotiate> http_negotiate;
// http_negotiate.QueryFrom(bscb_holder);
// if (http_negotiate && !IsSubFrameRequest(http_negotiate))
// return true;
@@ -201,7 +201,7 @@ HRESULT MonikerPatch::BindToObject(IMoniker_BindToObject_Fn original,
HRESULT hr = S_OK;
// Bind context is marked for switch when we sniff data in BSCBStorageBind
// and determine that the renderer to be used is Chrome.
- ScopedComPtr<BindContextInfo> info;
+ base::win::ScopedComPtr<BindContextInfo> info;
BindContextInfo::FromBindContext(bind_ctx, info.Receive());
DCHECK(info);
if (info) {
« no previous file with comments | « chrome_frame/urlmon_bind_status_callback.cc ('k') | chrome_frame/urlmon_upload_data_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698