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

Side by Side Diff: win8/viewer/metro_viewer_process_host.cc

Issue 1540973003: Switch to standard integer types in win8/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « win8/viewer/metro_viewer_process_host.h ('k') | no next file » | 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 #include "win8/viewer/metro_viewer_process_host.h" 5 #include "win8/viewer/metro_viewer_process_host.h"
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 #include <stdint.h>
8 9
9 #include "base/command_line.h" 10 #include "base/command_line.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/path_service.h" 14 #include "base/path_service.h"
14 #include "base/process/process.h" 15 #include "base/process/process.h"
15 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
16 #include "base/synchronization/waitable_event.h" 17 #include "base/synchronization/waitable_event.h"
17 #include "base/time/time.h" 18 #include "base/time/time.h"
(...skipping 16 matching lines...) Expand all
34 35
35 // static 36 // static
36 MetroViewerProcessHost* MetroViewerProcessHost::instance_ = NULL; 37 MetroViewerProcessHost* MetroViewerProcessHost::instance_ = NULL;
37 38
38 MetroViewerProcessHost::InternalMessageFilter::InternalMessageFilter( 39 MetroViewerProcessHost::InternalMessageFilter::InternalMessageFilter(
39 MetroViewerProcessHost* owner) 40 MetroViewerProcessHost* owner)
40 : owner_(owner) { 41 : owner_(owner) {
41 } 42 }
42 43
43 void MetroViewerProcessHost::InternalMessageFilter::OnChannelConnected( 44 void MetroViewerProcessHost::InternalMessageFilter::OnChannelConnected(
44 int32 peer_pid) { 45 int32_t peer_pid) {
45 owner_->NotifyChannelConnected(); 46 owner_->NotifyChannelConnected();
46 } 47 }
47 48
48 MetroViewerProcessHost::InternalMessageFilter::~InternalMessageFilter() { 49 MetroViewerProcessHost::InternalMessageFilter::~InternalMessageFilter() {
49 } 50 }
50 51
51 MetroViewerProcessHost::MetroViewerProcessHost( 52 MetroViewerProcessHost::MetroViewerProcessHost(
52 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { 53 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
53 DCHECK(!instance_); 54 DCHECK(!instance_);
54 instance_ = this; 55 instance_ = this;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const base::FilePath& folder) { 337 const base::FilePath& folder) {
337 if (success) 338 if (success)
338 select_folder_completion_callback_.Run(base::FilePath(folder), 0, NULL); 339 select_folder_completion_callback_.Run(base::FilePath(folder), 0, NULL);
339 else 340 else
340 failure_callback_.Run(NULL); 341 failure_callback_.Run(NULL);
341 select_folder_completion_callback_.Reset(); 342 select_folder_completion_callback_.Reset();
342 failure_callback_.Reset(); 343 failure_callback_.Reset();
343 } 344 }
344 345
345 } // namespace win8 346 } // namespace win8
OLDNEW
« no previous file with comments | « win8/viewer/metro_viewer_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698