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

Side by Side Diff: Source/modules/navigatorcontentutils/NavigatorContentUtils.h

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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, Samsung Electronics. All rights reserved. 3 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
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 are met: 6 * modification, are permitted provided that the following conditions 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 18 matching lines...) Expand all
29 29
30 #if ENABLE(NAVIGATOR_CONTENT_UTILS) 30 #if ENABLE(NAVIGATOR_CONTENT_UTILS)
31 31
32 #include "core/platform/RefCountedSupplement.h" 32 #include "core/platform/RefCountedSupplement.h"
33 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 33 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
34 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class ExceptionState; 39 class Page;
40 class Navigator; 40 class Navigator;
41 class Page; 41
42 typedef int ExceptionCode;
42 43
43 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent Utils> { 44 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent Utils> {
44 public: 45 public:
45 virtual ~NavigatorContentUtils(); 46 virtual ~NavigatorContentUtils();
46 47
47 static const char* supplementName(); 48 static const char* supplementName();
48 static NavigatorContentUtils* from(Page*); 49 static NavigatorContentUtils* from(Page*);
49 50
50 static void registerProtocolHandler(Navigator*, const String& scheme, const String& url, const String& title, ExceptionState&); 51 static void registerProtocolHandler(Navigator*, const String& scheme, const String& url, const String& title, ExceptionCode&);
51 52
52 #if ENABLE(CUSTOM_SCHEME_HANDLER) 53 #if ENABLE(CUSTOM_SCHEME_HANDLER)
53 static String isProtocolHandlerRegistered(Navigator*, const String& scheme, const String& url, ExceptionState&); 54 static String isProtocolHandlerRegistered(Navigator*, const String& scheme, const String& url, ExceptionCode&);
54 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons t String& url, ExceptionState&); 55 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons t String& url, ExceptionCode&);
55 #endif 56 #endif
56 57
57 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* ); 58 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* );
58 59
59 private: 60 private:
60 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client) 61 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client)
61 : m_client(client) 62 : m_client(client)
62 { } 63 { }
63 64
64 NavigatorContentUtilsClient* client() { return m_client; } 65 NavigatorContentUtilsClient* client() { return m_client; }
65 66
66 NavigatorContentUtilsClient* m_client; 67 NavigatorContentUtilsClient* m_client;
67 }; 68 };
68 69
69 } // namespace WebCore 70 } // namespace WebCore
70 71
71 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) 72 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS)
72 73
73 #endif // NavigatorContentUtils_h 74 #endif // NavigatorContentUtils_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/UserMediaRequest.cpp ('k') | Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698