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

Side by Side Diff: Source/WebCore/html/DOMURL.h

Issue 6482007: Merge 76652 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 | « Source/WebCore/dom/ScriptExecutionContext.cpp ('k') | Source/WebCore/html/DOMURL.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 * 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 22 matching lines...) Expand all
33 #include <wtf/RefCounted.h> 33 #include <wtf/RefCounted.h>
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class Blob; 37 class Blob;
38 class ScriptExecutionContext; 38 class ScriptExecutionContext;
39 39
40 class DOMURL : public RefCounted<DOMURL> { 40 class DOMURL : public RefCounted<DOMURL> {
41 public: 41 public:
42 static PassRefPtr<DOMURL> create(ScriptExecutionContext* scriptExecutionCont ext) { return adoptRef(new DOMURL(scriptExecutionContext)); } 42 static PassRefPtr<DOMURL> create(ScriptExecutionContext* scriptExecutionCont ext) { return adoptRef(new DOMURL(scriptExecutionContext)); }
43 ~DOMURL();
43 44
44 String createObjectURL(Blob*); 45 String createObjectURL(Blob*);
45 void revokeObjectURL(const String&); 46 void revokeObjectURL(const String&);
46 47
48 void contextDestroyed();
49 ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExec utionContext; }
50
47 private: 51 private:
48 explicit DOMURL(ScriptExecutionContext*); 52 explicit DOMURL(ScriptExecutionContext*);
49 53
50 ScriptExecutionContext* m_scriptExecutionContext; 54 ScriptExecutionContext* m_scriptExecutionContext;
51 }; 55 };
52 56
53 } // namespace WebCore 57 } // namespace WebCore
54 58
55 #endif // ENABLE(BLOB) 59 #endif // ENABLE(BLOB)
56 60
57 #endif // DOMURL_h 61 #endif // DOMURL_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/ScriptExecutionContext.cpp ('k') | Source/WebCore/html/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698