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

Side by Side Diff: third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "modules/document_metadata/CopylessPasteExtractor.h" 5 #include "modules/document_metadata/CopylessPasteExtractor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
11 #include "core/HTMLNames.h" 11 #include "core/HTMLNames.h"
12 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
13 #include "core/dom/ElementTraversal.h" 13 #include "core/dom/ElementTraversal.h"
14 #include "core/frame/LocalFrame.h" 14 #include "core/frame/LocalFrame.h"
15 #include "core/html/HTMLElement.h" 15 #include "core/html/HTMLElement.h"
16 #include "platform/Histogram.h" 16 #include "platform/Histogram.h"
17 #include "platform/instrumentation/tracing/TraceEvent.h" 17 #include "platform/instrumentation/tracing/TraceEvent.h"
18 #include "platform/json/JSONParser.h" 18 #include "platform/json/JSONParser.h"
19 #include "platform/wtf/Vector.h"
20 #include "platform/wtf/text/AtomicString.h"
21 #include "platform/wtf/text/StringBuilder.h"
19 #include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h " 22 #include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h "
20 #include "wtf/Vector.h"
21 #include "wtf/text/AtomicString.h"
22 #include "wtf/text/StringBuilder.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 namespace { 26 namespace {
27 27
28 using mojom::document_metadata::blink::Entity; 28 using mojom::document_metadata::blink::Entity;
29 using mojom::document_metadata::blink::EntityPtr; 29 using mojom::document_metadata::blink::EntityPtr;
30 using mojom::document_metadata::blink::Property; 30 using mojom::document_metadata::blink::Property;
31 using mojom::document_metadata::blink::PropertyPtr; 31 using mojom::document_metadata::blink::PropertyPtr;
32 using mojom::document_metadata::blink::Values; 32 using mojom::document_metadata::blink::Values;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 double elapsed_time = MonotonicallyIncreasingTime() - start_time; 297 double elapsed_time = MonotonicallyIncreasingTime() - start_time;
298 298
299 DEFINE_STATIC_LOCAL(CustomCountHistogram, extractionHistogram, 299 DEFINE_STATIC_LOCAL(CustomCountHistogram, extractionHistogram,
300 ("CopylessPaste.ExtractionUs", 1, 1000000, 50)); 300 ("CopylessPaste.ExtractionUs", 1, 1000000, 50));
301 extractionHistogram.Count(static_cast<int>(1e6 * elapsed_time)); 301 extractionHistogram.Count(static_cast<int>(1e6 * elapsed_time));
302 return page; 302 return page;
303 } 303 }
304 304
305 } // namespace blink 305 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698