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

Side by Side Diff: chrome/utility/utility_thread.h

Issue 5947002: As the first step in an effort to improve robustness of the cloud print proxy... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed Mac/Linux compile error Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_UTILITY_UTILITY_THREAD_H_ 5 #ifndef CHROME_UTILITY_UTILITY_THREAD_H_
6 #define CHROME_UTILITY_UTILITY_THREAD_H_ 6 #define CHROME_UTILITY_UTILITY_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const std::vector<SerializedScriptValue>& serialized_script_values, 77 const std::vector<SerializedScriptValue>& serialized_script_values,
78 const string16& idb_key_path); 78 const string16& idb_key_path);
79 79
80 // IPC to notify we'll be running in batch mode instead of quitting after 80 // IPC to notify we'll be running in batch mode instead of quitting after
81 // any of the IPCs above, we'll only quit during OnBatchModeFinished(). 81 // any of the IPCs above, we'll only quit during OnBatchModeFinished().
82 void OnBatchModeStarted(); 82 void OnBatchModeStarted();
83 83
84 // IPC to notify batch mode has finished and we should now quit. 84 // IPC to notify batch mode has finished and we should now quit.
85 void OnBatchModeFinished(); 85 void OnBatchModeFinished();
86 86
87 // IPC to get capabilities and defaults for the specified
88 // printer. Used on Windows to isolate the service process from printer driver
89 // crashes by executing this in a separate process. This does not run in a
90 // sandbox.
91 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
92
87 // Releases the process if we are not (or no longer) in batch mode. 93 // Releases the process if we are not (or no longer) in batch mode.
88 void ReleaseProcessIfNeeded(); 94 void ReleaseProcessIfNeeded();
89 95
90 // True when we're running in batch mode. 96 // True when we're running in batch mode.
91 bool batch_mode_; 97 bool batch_mode_;
92 98
93 DISALLOW_COPY_AND_ASSIGN(UtilityThread); 99 DISALLOW_COPY_AND_ASSIGN(UtilityThread);
94 }; 100 };
95 101
96 #endif // CHROME_UTILITY_UTILITY_THREAD_H_ 102 #endif // CHROME_UTILITY_UTILITY_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698