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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLMetaCharsetParser.cpp

Issue 2729583004: Skip a few "using namespace" that we don't really need. (Closed)
Patch Set: Created 3 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) 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 14 matching lines...) Expand all
25 25
26 #include "core/html/parser/HTMLMetaCharsetParser.h" 26 #include "core/html/parser/HTMLMetaCharsetParser.h"
27 27
28 #include "core/HTMLNames.h" 28 #include "core/HTMLNames.h"
29 #include "core/html/parser/HTMLParserIdioms.h" 29 #include "core/html/parser/HTMLParserIdioms.h"
30 #include "core/html/parser/HTMLParserOptions.h" 30 #include "core/html/parser/HTMLParserOptions.h"
31 #include "core/html/parser/HTMLTokenizer.h" 31 #include "core/html/parser/HTMLTokenizer.h"
32 #include "wtf/text/TextEncodingRegistry.h" 32 #include "wtf/text/TextEncodingRegistry.h"
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 34
35 using namespace WTF;
36
37 namespace blink { 35 namespace blink {
38 36
39 using namespace HTMLNames; 37 using namespace HTMLNames;
40 38
41 HTMLMetaCharsetParser::HTMLMetaCharsetParser() 39 HTMLMetaCharsetParser::HTMLMetaCharsetParser()
42 : m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(0))), 40 : m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(0))),
43 m_assumedCodec(newTextCodec(Latin1Encoding())), 41 m_assumedCodec(newTextCodec(Latin1Encoding())),
44 m_inHeadSection(true), 42 m_inHeadSection(true),
45 m_doneChecking(false) {} 43 m_doneChecking(false) {}
46 44
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return true; 119 return true;
122 } 120 }
123 121
124 m_token.clear(); 122 m_token.clear();
125 } 123 }
126 124
127 return false; 125 return false;
128 } 126 }
129 127
130 } // namespace blink 128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698