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

Side by Side Diff: net/tools/dump_cache/upgrade.cc

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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) 2010 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 "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "base/win/scoped_handle.h"
12 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
13 #include "net/base/io_buffer.h" 14 #include "net/base/io_buffer.h"
14 #include "net/base/test_completion_callback.h" 15 #include "net/base/test_completion_callback.h"
15 #include "net/disk_cache/backend_impl.h" 16 #include "net/disk_cache/backend_impl.h"
16 #include "net/disk_cache/entry_impl.h" 17 #include "net/disk_cache/entry_impl.h"
17 #include "net/http/http_cache.h" 18 #include "net/http/http_cache.h"
18 #include "net/http/http_response_headers.h" 19 #include "net/http/http_response_headers.h"
19 #include "net/http/http_response_info.h" 20 #include "net/http/http_response_info.h"
20 #include "net/tools/dump_cache/cache_dumper.h" 21 #include "net/tools/dump_cache/cache_dumper.h"
21 22
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 } 906 }
906 907
907 loop.Run(); 908 loop.Run();
908 return 0; 909 return 0;
909 } 910 }
910 911
911 // This process will only execute commands from the controller. 912 // This process will only execute commands from the controller.
912 int RunSlave(const std::wstring& input_path, const std::wstring& pipe_number) { 913 int RunSlave(const std::wstring& input_path, const std::wstring& pipe_number) {
913 MessageLoop loop(MessageLoop::TYPE_IO); 914 MessageLoop loop(MessageLoop::TYPE_IO);
914 915
915 ScopedHandle pipe(OpenServer(pipe_number)); 916 base::win::ScopedHandle pipe(OpenServer(pipe_number));
916 if (!pipe.IsValid()) { 917 if (!pipe.IsValid()) {
917 printf("Unable to open the server pipe\n"); 918 printf("Unable to open the server pipe\n");
918 return -1; 919 return -1;
919 } 920 }
920 921
921 SlaveSM slave(input_path, pipe); 922 SlaveSM slave(input_path, pipe);
922 if (!slave.DoInit()) { 923 if (!slave.DoInit()) {
923 printf("Unable to talk with the main process\n"); 924 printf("Unable to talk with the main process\n");
924 return -1; 925 return -1;
925 } 926 }
926 927
927 loop.Run(); 928 loop.Run();
928 return 0; 929 return 0;
929 } 930 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698