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

Side by Side Diff: content/browser/device_orientation/provider.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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
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 "content/browser/device_orientation/provider.h" 5 #include "content/browser/device_orientation/provider.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/device_orientation/data_fetcher.h" 8 #include "content/browser/device_orientation/data_fetcher.h"
9 #include "content/browser/device_orientation/provider_impl.h" 9 #include "content/browser/device_orientation/provider_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 #if defined(OS_MACOSX) 12 #if defined(OS_MACOSX)
13 #include "content/browser/device_orientation/accelerometer_mac.h" 13 #include "content/browser/device_orientation/accelerometer_mac.h"
14 #endif 14 #endif
15 15
16 using content::BrowserThread;
17
16 namespace device_orientation { 18 namespace device_orientation {
17 19
18 Provider* Provider::GetInstance() { 20 Provider* Provider::GetInstance() {
19 if (!instance_) { 21 if (!instance_) {
20 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 22 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
21 const ProviderImpl::DataFetcherFactory default_factories[] = { 23 const ProviderImpl::DataFetcherFactory default_factories[] = {
22 #if defined(OS_MACOSX) 24 #if defined(OS_MACOSX)
23 AccelerometerMac::Create, 25 AccelerometerMac::Create,
24 #endif 26 #endif
25 NULL 27 NULL
(...skipping 17 matching lines...) Expand all
43 } 45 }
44 46
45 Provider::~Provider() { 47 Provider::~Provider() {
46 DCHECK(instance_ == this); 48 DCHECK(instance_ == this);
47 instance_ = NULL; 49 instance_ = NULL;
48 } 50 }
49 51
50 Provider* Provider::instance_ = NULL; 52 Provider* Provider::instance_ = NULL;
51 53
52 } // namespace device_orientation 54 } // namespace device_orientation
OLDNEW
« no previous file with comments | « content/browser/device_orientation/message_filter.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698