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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2746333002: DevTools: move recurring flag into AsyncTask, control cancelation from embedder only. (Closed)
Patch Set: using _END now 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 4458 matching lines...) Expand 10 before | Expand all | Expand 10 after
4469 if (m_passwordCount > 0) { 4469 if (m_passwordCount > 0) {
4470 sensitiveInputServicePtr->PasswordFieldVisibleInInsecureContext(); 4470 sensitiveInputServicePtr->PasswordFieldVisibleInInsecureContext();
4471 return; 4471 return;
4472 } 4472 }
4473 sensitiveInputServicePtr->AllPasswordFieldsInInsecureContextInvisible(); 4473 sensitiveInputServicePtr->AllPasswordFieldsInInsecureContextInvisible();
4474 } 4474 }
4475 4475
4476 void Document::runExecutionContextTask( 4476 void Document::runExecutionContextTask(
4477 std::unique_ptr<ExecutionContextTask> task, 4477 std::unique_ptr<ExecutionContextTask> task,
4478 bool isInstrumented) { 4478 bool isInstrumented) {
4479 probe::AsyncTask asyncTask(this, task.get(), isInstrumented); 4479 probe::AsyncTask asyncTask(this, task.get(), nullptr, isInstrumented);
4480 task->performTask(this); 4480 task->performTask(this);
4481 } 4481 }
4482 4482
4483 void Document::registerEventFactory( 4483 void Document::registerEventFactory(
4484 std::unique_ptr<EventFactoryBase> eventFactory) { 4484 std::unique_ptr<EventFactoryBase> eventFactory) {
4485 DCHECK(!eventFactories().contains(eventFactory.get())); 4485 DCHECK(!eventFactories().contains(eventFactory.get()));
4486 eventFactories().insert(std::move(eventFactory)); 4486 eventFactories().insert(std::move(eventFactory));
4487 } 4487 }
4488 4488
4489 Event* Document::createEvent(ScriptState* scriptState, 4489 Event* Document::createEvent(ScriptState* scriptState,
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
6678 } 6678 }
6679 6679
6680 void showLiveDocumentInstances() { 6680 void showLiveDocumentInstances() {
6681 WeakDocumentSet& set = liveDocumentSet(); 6681 WeakDocumentSet& set = liveDocumentSet();
6682 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6682 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6683 for (blink::Document* document : set) 6683 for (blink::Document* document : set)
6684 fprintf(stderr, "- Document %p URL: %s\n", document, 6684 fprintf(stderr, "- Document %p URL: %s\n", document,
6685 document->url().getString().utf8().data()); 6685 document->url().getString().utf8().data());
6686 } 6686 }
6687 #endif 6687 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698