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

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

Issue 22859043: Add a CustomSchemeHandler runtime flag to remove ENABLE(CUSTOM_SCHEME_HANDLER) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent Utils> { 43 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent Utils> {
44 public: 44 public:
45 virtual ~NavigatorContentUtils(); 45 virtual ~NavigatorContentUtils();
46 46
47 static const char* supplementName(); 47 static const char* supplementName();
48 static NavigatorContentUtils* from(Page*); 48 static NavigatorContentUtils* from(Page*);
49 49
50 static void registerProtocolHandler(Navigator*, const String& scheme, const String& url, const String& title, ExceptionState&); 50 static void registerProtocolHandler(Navigator*, const String& scheme, const String& url, const String& title, ExceptionState&);
51 51
52 #if ENABLE(CUSTOM_SCHEME_HANDLER)
53 static String isProtocolHandlerRegistered(Navigator*, const String& scheme, const String& url, ExceptionState&); 52 static String isProtocolHandlerRegistered(Navigator*, const String& scheme, const String& url, ExceptionState&);
54 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons t String& url, ExceptionState&); 53 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons t String& url, ExceptionState&);
55 #endif
56 54
57 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* ); 55 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* );
58 56
59 private: 57 private:
60 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client) 58 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client)
61 : m_client(client) 59 : m_client(client)
62 { } 60 { }
63 61
64 NavigatorContentUtilsClient* client() { return m_client; } 62 NavigatorContentUtilsClient* client() { return m_client; }
65 63
66 NavigatorContentUtilsClient* m_client; 64 NavigatorContentUtilsClient* m_client;
67 }; 65 };
68 66
69 } // namespace WebCore 67 } // namespace WebCore
70 68
71 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) 69 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS)
72 70
73 #endif // NavigatorContentUtils_h 71 #endif // NavigatorContentUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698