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

Side by Side Diff: Source/core/html/parser/HTMLParserThread.h

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Created 6 years, 9 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698