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

Side by Side Diff: Source/core/dom/DocumentParser.cpp

Issue 74493002: Removed refcounting from TextResourceDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step2
Patch Set: Compile fix Created 7 years, 1 month 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
« no previous file with comments | « Source/core/dom/DocumentParser.h ('k') | Source/core/fetch/CSSStyleSheetResource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 DocumentParser::~DocumentParser() 42 DocumentParser::~DocumentParser()
43 { 43 {
44 // Document is expected to call detach() before releasing its ref. 44 // Document is expected to call detach() before releasing its ref.
45 // This ASSERT is slightly awkward for parsers with a fragment case 45 // This ASSERT is slightly awkward for parsers with a fragment case
46 // as there is no Document to release the ref. 46 // as there is no Document to release the ref.
47 ASSERT(!m_document); 47 ASSERT(!m_document);
48 } 48 }
49 49
50 void DocumentParser::setDecoder(PassRefPtr<TextResourceDecoder>) 50 void DocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder>)
51 { 51 {
52 ASSERT_NOT_REACHED(); 52 ASSERT_NOT_REACHED();
53 } 53 }
54 54
55 PassRefPtr<TextResourceDecoder> DocumentParser::decoder() 55 TextResourceDecoder* DocumentParser::decoder()
56 { 56 {
57 return 0; 57 return 0;
58 } 58 }
59 59
60 void DocumentParser::startParsing() 60 void DocumentParser::startParsing()
61 { 61 {
62 m_state = ParsingState; 62 m_state = ParsingState;
63 } 63 }
64 64
65 void DocumentParser::prepareToStopParsing() 65 void DocumentParser::prepareToStopParsing()
(...skipping 16 matching lines...) Expand all
82 void DocumentParser::suspendScheduledTasks() 82 void DocumentParser::suspendScheduledTasks()
83 { 83 {
84 } 84 }
85 85
86 void DocumentParser::resumeScheduledTasks() 86 void DocumentParser::resumeScheduledTasks()
87 { 87 {
88 } 88 }
89 89
90 }; 90 };
91 91
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentParser.h ('k') | Source/core/fetch/CSSStyleSheetResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698