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

Side by Side Diff: chrome_frame/urlmon_moniker.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: willchan comments + rebase Created 9 years, 1 month 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/test/net/fake_external_tab.cc ('k') | chrome_frame/utils.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 #include "chrome_frame/urlmon_moniker.h" 5 #include "chrome_frame/urlmon_moniker.h"
6 6
7 #include <exdisp.h> 7 #include <exdisp.h>
8 #include <shlguid.h> 8 #include <shlguid.h>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome_frame/bho.h" 13 #include "chrome_frame/bho.h"
14 #include "chrome_frame/bind_context_info.h" 14 #include "chrome_frame/bind_context_info.h"
15 #include "chrome_frame/chrome_active_document.h" 15 #include "chrome_frame/chrome_active_document.h"
16 #include "chrome_frame/exception_barrier.h" 16 #include "chrome_frame/exception_barrier.h"
17 #include "chrome_frame/urlmon_bind_status_callback.h" 17 #include "chrome_frame/urlmon_bind_status_callback.h"
18 #include "chrome_frame/utils.h" 18 #include "chrome_frame/utils.h"
19 #include "chrome_frame/vtable_patch_manager.h" 19 #include "chrome_frame/vtable_patch_manager.h"
20 #include "net/http/http_util.h" 20 #include "net/http/http_util.h"
21 21
22 static const int kMonikerBindToObject = 8; 22 static const int kMonikerBindToObject = 8;
23 static const int kMonikerBindToStorage = kMonikerBindToObject + 1; 23 static const int kMonikerBindToStorage = kMonikerBindToObject + 1;
24 24
25 base::LazyInstance<base::ThreadLocalPointer<NavigationManager> > 25 base::LazyInstance<base::ThreadLocalPointer<NavigationManager> >
26 NavigationManager::thread_singleton_(base::LINKER_INITIALIZED); 26 NavigationManager::thread_singleton_ = LAZY_INSTANCE_INITIALIZER;
27 27
28 BEGIN_VTABLE_PATCHES(IMoniker) 28 BEGIN_VTABLE_PATCHES(IMoniker)
29 VTABLE_PATCH_ENTRY(kMonikerBindToObject, MonikerPatch::BindToObject) 29 VTABLE_PATCH_ENTRY(kMonikerBindToObject, MonikerPatch::BindToObject)
30 VTABLE_PATCH_ENTRY(kMonikerBindToStorage, MonikerPatch::BindToStorage) 30 VTABLE_PATCH_ENTRY(kMonikerBindToStorage, MonikerPatch::BindToStorage)
31 END_VTABLE_PATCHES() 31 END_VTABLE_PATCHES()
32 32
33 //////////////////////////// 33 ////////////////////////////
34 34
35 HRESULT NavigationManager::NavigateToCurrentUrlInCF(IBrowserService* browser) { 35 HRESULT NavigationManager::NavigateToCurrentUrlInCF(IBrowserService* browser) {
36 DCHECK(browser); 36 DCHECK(browser);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 // If the binding terminates before the data could be played back 254 // If the binding terminates before the data could be played back
255 // now is the chance. Sometimes OnStopBinding happens after this returns 255 // now is the chance. Sometimes OnStopBinding happens after this returns
256 // and then it's too late. 256 // and then it's too late.
257 if ((S_OK == hr) && callback) 257 if ((S_OK == hr) && callback)
258 callback->MayPlayBack(BSCF_LASTDATANOTIFICATION); 258 callback->MayPlayBack(BSCF_LASTDATANOTIFICATION);
259 259
260 return hr; 260 return hr;
261 } 261 }
262 262
OLDNEW
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698