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

Side by Side Diff: content/public/browser/browser_thread.h

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 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) 2011 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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // thread outliving every other thread below it. 57 // thread outliving every other thread below it.
58 enum ID { 58 enum ID {
59 // The main thread in the browser. 59 // The main thread in the browser.
60 UI, 60 UI,
61 61
62 // This is the thread that interacts with the database. 62 // This is the thread that interacts with the database.
63 DB, 63 DB,
64 64
65 // This is the "main" thread for WebKit within the browser process when 65 // This is the "main" thread for WebKit within the browser process when
66 // NOT in --single-process mode. 66 // NOT in --single-process mode.
67 WEBKIT, 67 // Deprecated: Do not design new code to use this thread; see
68 // http://crbug.com/106839
69 WEBKIT_DEPRECATED,
68 70
69 // This is the thread that interacts with the file system. 71 // This is the thread that interacts with the file system.
70 FILE, 72 FILE,
71 73
72 // Used for file system operations that block user interactions. 74 // Used for file system operations that block user interactions.
73 // Responsiveness of this thread affect users. 75 // Responsiveness of this thread affect users.
74 FILE_USER_BLOCKING, 76 FILE_USER_BLOCKING,
75 77
76 // Used to launch and terminate Chrome processes. 78 // Used to launch and terminate Chrome processes.
77 PROCESS_LAUNCHER, 79 PROCESS_LAUNCHER,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // ... 232 // ...
231 // private: 233 // private:
232 // friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; 234 // friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>;
233 // friend class DeleteTask<Foo>; 235 // friend class DeleteTask<Foo>;
234 // 236 //
235 // ~Foo(); 237 // ~Foo();
236 struct DeleteOnUIThread : public DeleteOnThread<UI> { }; 238 struct DeleteOnUIThread : public DeleteOnThread<UI> { };
237 struct DeleteOnIOThread : public DeleteOnThread<IO> { }; 239 struct DeleteOnIOThread : public DeleteOnThread<IO> { };
238 struct DeleteOnFileThread : public DeleteOnThread<FILE> { }; 240 struct DeleteOnFileThread : public DeleteOnThread<FILE> { };
239 struct DeleteOnDBThread : public DeleteOnThread<DB> { }; 241 struct DeleteOnDBThread : public DeleteOnThread<DB> { };
240 struct DeleteOnWebKitThread : public DeleteOnThread<WEBKIT> { }; 242 struct DeleteOnWebKitThread : public DeleteOnThread<WEBKIT_DEPRECATED> { };
241 243
242 private: 244 private:
243 friend class BrowserThreadImpl; 245 friend class BrowserThreadImpl;
244 246
245 BrowserThread() {} 247 BrowserThread() {}
246 DISALLOW_COPY_AND_ASSIGN(BrowserThread); 248 DISALLOW_COPY_AND_ASSIGN(BrowserThread);
247 }; 249 };
248 250
249 } // namespace content 251 } // namespace content
250 252
251 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ 253 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/webkit_thread_unittest.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698