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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMURL.h ('k') | Source/core/dom/DataTransferItemList.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Motorola Mobility Inc. 3 * Copyright (C) 2012 Motorola Mobility Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 22 matching lines...) Expand all
33 #include "core/dom/ExecutionContext.h" 33 #include "core/dom/ExecutionContext.h"
34 #include "core/fetch/MemoryCache.h" 34 #include "core/fetch/MemoryCache.h"
35 #include "core/fileapi/Blob.h" 35 #include "core/fileapi/Blob.h"
36 #include "core/html/PublicURLManager.h" 36 #include "core/html/PublicURLManager.h"
37 #include "platform/blob/BlobURL.h" 37 #include "platform/blob/BlobURL.h"
38 #include "platform/weborigin/SecurityOrigin.h" 38 #include "platform/weborigin/SecurityOrigin.h"
39 #include "wtf/MainThread.h" 39 #include "wtf/MainThread.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& es) 43 DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& exceptionSta te)
44 { 44 {
45 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
46 if (!base.isValid()) 46 if (!base.isValid())
47 es.throwDOMException(SyntaxError, ExceptionMessages::failedToConstruct(" URL", "Invalid base URL")); 47 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedT oConstruct("URL", "Invalid base URL"));
48 48
49 m_url = KURL(base, url); 49 m_url = KURL(base, url);
50 if (!m_url.isValid()) 50 if (!m_url.isValid())
51 es.throwDOMException(SyntaxError, ExceptionMessages::failedToConstruct(" URL", "Invalid URL")); 51 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedT oConstruct("URL", "Invalid URL"));
52 } 52 }
53 53
54 void DOMURL::setInput(const String& value) 54 void DOMURL::setInput(const String& value)
55 { 55 {
56 KURL url(blankURL(), value); 56 KURL url(blankURL(), value);
57 if (url.isValid()) { 57 if (url.isValid()) {
58 m_url = url; 58 m_url = url;
59 m_input = String(); 59 m_input = String();
60 } else { 60 } else {
61 m_url = KURL(); 61 m_url = KURL();
(...skipping 23 matching lines...) Expand all
85 { 85 {
86 if (!executionContext) 86 if (!executionContext)
87 return; 87 return;
88 88
89 KURL url(KURL(), urlString); 89 KURL url(KURL(), urlString);
90 MemoryCache::removeURLFromCache(executionContext, url); 90 MemoryCache::removeURLFromCache(executionContext, url);
91 executionContext->publicURLManager().revoke(url); 91 executionContext->publicURLManager().revoke(url);
92 } 92 }
93 93
94 } // namespace WebCore 94 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/DOMURL.h ('k') | Source/core/dom/DataTransferItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698