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

Side by Side Diff: content/browser/gamepad/gamepad_provider.cc

Issue 11618049: Cleanup: Remove unneeded browser_thread.h includes in contents. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "content/browser/gamepad/gamepad_data_fetcher.h" 15 #include "content/browser/gamepad/gamepad_data_fetcher.h"
16 #include "content/browser/gamepad/gamepad_provider.h" 16 #include "content/browser/gamepad/gamepad_provider.h"
17 #include "content/browser/gamepad/gamepad_platform_data_fetcher.h" 17 #include "content/browser/gamepad/gamepad_platform_data_fetcher.h"
18 #include "content/common/gamepad_hardware_buffer.h" 18 #include "content/common/gamepad_hardware_buffer.h"
19 #include "content/common/gamepad_messages.h" 19 #include "content/common/gamepad_messages.h"
20 #include "content/common/gamepad_user_gesture.h" 20 #include "content/common/gamepad_user_gesture.h"
21 #include "content/public/browser/browser_thread.h"
22 21
23 namespace content { 22 namespace content {
24 23
25 GamepadProvider::ClosureAndThread::ClosureAndThread( 24 GamepadProvider::ClosureAndThread::ClosureAndThread(
26 const base::Closure& c, 25 const base::Closure& c,
27 const scoped_refptr<base::MessageLoopProxy>& m) 26 const scoped_refptr<base::MessageLoopProxy>& m)
28 : closure(c), 27 : closure(c),
29 message_loop(m) { 28 message_loop(m) {
30 } 29 }
31 30
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (GamepadsHaveUserGesture(SharedMemoryAsHardwareBuffer()->buffer)) { 200 if (GamepadsHaveUserGesture(SharedMemoryAsHardwareBuffer()->buffer)) {
202 for (size_t i = 0; i < user_gesture_observers_.size(); i++) { 201 for (size_t i = 0; i < user_gesture_observers_.size(); i++) {
203 user_gesture_observers_[i].message_loop->PostTask(FROM_HERE, 202 user_gesture_observers_[i].message_loop->PostTask(FROM_HERE,
204 user_gesture_observers_[i].closure); 203 user_gesture_observers_[i].closure);
205 } 204 }
206 user_gesture_observers_.clear(); 205 user_gesture_observers_.clear();
207 } 206 }
208 } 207 }
209 208
210 } // namespace content 209 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/chrome_blob_storage_context.cc ('k') | content/browser/gamepad/gamepad_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698