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

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

Issue 6586001: Move appcache/file_sytem/device_orientation subdirectories of chrome\browser ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <cmath> 5 #include <cmath>
6 #include <set> 6 #include <set>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "chrome/browser/device_orientation/orientation.h" 14 #include "content/browser/device_orientation/orientation.h"
15 #include "chrome/browser/device_orientation/provider_impl.h" 15 #include "content/browser/device_orientation/provider_impl.h"
16 16
17 namespace device_orientation { 17 namespace device_orientation {
18 18
19 ProviderImpl::ProviderImpl(const DataFetcherFactory factories[]) 19 ProviderImpl::ProviderImpl(const DataFetcherFactory factories[])
20 : creator_loop_(MessageLoop::current()), 20 : creator_loop_(MessageLoop::current()),
21 ALLOW_THIS_IN_INITIALIZER_LIST(do_poll_method_factory_(this)) { 21 ALLOW_THIS_IN_INITIALIZER_LIST(do_poll_method_factory_(this)) {
22 for (const DataFetcherFactory* fp = factories; *fp; ++fp) 22 for (const DataFetcherFactory* fp = factories; *fp; ++fp)
23 factories_.push_back(*fp); 23 factories_.push_back(*fp);
24 } 24 }
25 25
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 DCHECK(MessageLoop::current() == polling_thread_->message_loop()); 194 DCHECK(MessageLoop::current() == polling_thread_->message_loop());
195 DCHECK(data_fetcher_.get()); 195 DCHECK(data_fetcher_.get());
196 196
197 // TODO(erg): There used to be unused code here, that called a default 197 // TODO(erg): There used to be unused code here, that called a default
198 // implementation on the DataFetcherInterface that was never defined. I'm 198 // implementation on the DataFetcherInterface that was never defined. I'm
199 // removing unused methods from headers. 199 // removing unused methods from headers.
200 return kDesiredSamplingIntervalMs; 200 return kDesiredSamplingIntervalMs;
201 } 201 }
202 202
203 } // namespace device_orientation 203 } // namespace device_orientation
OLDNEW
« no previous file with comments | « content/browser/device_orientation/provider_impl.h ('k') | content/browser/device_orientation/provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698