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

Side by Side Diff: win8/test/open_with_dialog_async.cc

Issue 1973453003: Fix include path for moved thread_task_runner_handle.h header in win8/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | win8/test/open_with_dialog_controller.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // Implementation for the asynchronous interface to the Windows shell 5 // Implementation for the asynchronous interface to the Windows shell
6 // SHOpenWithDialog function. The call is made on a dedicated UI thread in a 6 // SHOpenWithDialog function. The call is made on a dedicated UI thread in a
7 // single-threaded apartment. 7 // single-threaded apartment.
8 8
9 #include "win8/test/open_with_dialog_async.h" 9 #include "win8/test/open_with_dialog_async.h"
10 10
11 #include <shlobj.h> 11 #include <shlobj.h>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/thread_task_runner_handle.h"
19 #include "base/threading/platform_thread.h" 18 #include "base/threading/platform_thread.h"
20 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/threading/thread_task_runner_handle.h"
21 #include "base/win/windows_version.h" 21 #include "base/win/windows_version.h"
22 22
23 namespace win8 { 23 namespace win8 {
24 24
25 namespace { 25 namespace {
26 26
27 struct OpenWithContext { 27 struct OpenWithContext {
28 OpenWithContext( 28 OpenWithContext(
29 HWND parent_window_in, 29 HWND parent_window_in,
30 const base::string16& file_name_in, 30 const base::string16& file_name_in,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 OpenWithContext* context = 112 OpenWithContext* context =
113 new OpenWithContext(parent_window, file_name, file_type_class, 113 new OpenWithContext(parent_window, file_name, file_type_class,
114 open_as_info_flags, 114 open_as_info_flags,
115 base::ThreadTaskRunnerHandle::Get(), callback); 115 base::ThreadTaskRunnerHandle::Get(), callback);
116 context->thread.message_loop()->PostTask( 116 context->thread.message_loop()->PostTask(
117 FROM_HERE, 117 FROM_HERE,
118 base::Bind(&OpenWithDialogTask, context)); 118 base::Bind(&OpenWithDialogTask, context));
119 } 119 }
120 120
121 } // namespace win8 121 } // namespace win8
OLDNEW
« no previous file with comments | « no previous file | win8/test/open_with_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698