OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... | |
39 | 39 |
40 class HTMLParserThread { | 40 class HTMLParserThread { |
41 public: | 41 public: |
42 static void init(); | 42 static void init(); |
43 static void shutdown(); | 43 static void shutdown(); |
44 | 44 |
45 // It is an error to call shared() before init() or after shutdown(); | 45 // It is an error to call shared() before init() or after shutdown(); |
46 static HTMLParserThread* shared(); | 46 static HTMLParserThread* shared(); |
47 | 47 |
48 void postTask(const Closure&); | 48 void postTask(const Closure&); |
49 blink::WebThread& ensureThread(); | |
abarth-chromium
2014/03/10 21:52:20
I'd rename this function to something like platfor
oystein (OOO til 10th of July)
2014/03/17 21:19:11
Done.
| |
49 | 50 |
50 private: | 51 private: |
51 HTMLParserThread(); | 52 HTMLParserThread(); |
52 ~HTMLParserThread(); | 53 ~HTMLParserThread(); |
53 | 54 |
54 blink::WebThread& ensureThread(); | |
55 | |
56 OwnPtr<blink::WebThread> m_thread; | 55 OwnPtr<blink::WebThread> m_thread; |
57 }; | 56 }; |
58 | 57 |
59 } // namespace WebCore | 58 } // namespace WebCore |
60 | 59 |
61 #endif // HTMLParserThread_h | 60 #endif // HTMLParserThread_h |
OLD | NEW |