Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // 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 are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * 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 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 const String& mainLibraryURL() const { return m_libraryUrl; } | 60 const String& mainLibraryURL() const { return m_libraryUrl; } |
| 61 | 61 |
| 62 Document* document() { return m_originDocument; } | 62 Document* document() { return m_originDocument; } |
| 63 | 63 |
| 64 static void installLibraryTagHandlerForCurrentIsolate(); | 64 static void installLibraryTagHandlerForCurrentIsolate(); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 void scriptLoadError(String failedUrl); | 67 void scriptLoadError(String failedUrl); |
| 68 void loadMainScript(const String& url, const String& source); | 68 void loadMainScript(const String& url, const String& source); |
| 69 | 69 |
| 70 static Dart_Handle libraryTagHandlerCallback(Dart_LibraryTag tag, Dart_Handl e library, Dart_Handle url); | 70 static Dart_Handle libraryTagHandlerCallback(Dart_LibraryTag, Dart_Handle li brary, Dart_Handle urlHandle); |
|
siva
2013/07/12 01:05:44
Dart_LibraryTag tag,
kustermann
2013/07/12 16:02:21
I didn't want to remove it, but I had a hard time
siva
2013/07/12 16:58:09
That is a very weird style guideline. Thanks for t
| |
| 71 Dart_Handle libraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, Dart _Handle url); | 71 static Dart_Handle CanonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url); |
| 72 Dart_Handle libraryTagHandler(Dart_LibraryTag, Dart_Handle library, Dart_Han dle urlHandle, String url); | |
|
siva
2013/07/12 01:05:44
Dart_LibraryTag tag,
| |
| 72 | 73 |
| 73 Dart_Isolate m_isolate; | 74 Dart_Isolate m_isolate; |
| 74 // Client must ensure that DartApplicationLoader doesn't outlive correspondi ng document. | 75 // Client must ensure that DartApplicationLoader doesn't outlive correspondi ng document. |
| 75 Document* m_originDocument; | 76 Document* m_originDocument; |
| 76 RefPtr<ErrorEventDispatcher> m_errorEventDispatcher; | 77 RefPtr<ErrorEventDispatcher> m_errorEventDispatcher; |
| 77 String m_libraryUrl; | 78 String m_libraryUrl; |
| 78 | 79 |
| 79 void loadScriptFromSnapshot(const String& url, const uint8_t* snapshot, intp tr_t snapshotSize); | 80 void loadScriptFromSnapshot(const String& url, const uint8_t* snapshot, intp tr_t snapshotSize); |
| 80 void loadLibrary(const String& url, const String& source); | 81 void loadLibrary(const String& url, const String& source); |
| 81 void loadSource(const String& url, const String& source); | 82 void loadSource(const String& url, const String& source); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 100 | 101 |
| 101 RefPtr<VoidCallback> m_applicationLoadedCallback; | 102 RefPtr<VoidCallback> m_applicationLoadedCallback; |
| 102 bool m_domEnabled; | 103 bool m_domEnabled; |
| 103 | 104 |
| 104 friend class ScriptLoadCallback; | 105 friend class ScriptLoadCallback; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } | 108 } |
| 108 | 109 |
| 109 #endif // DartApplicationLoader_h | 110 #endif // DartApplicationLoader_h |
| OLD | NEW |