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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | 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 25 matching lines...) Expand all
36 36
37 class ExceptionState; 37 class ExceptionState;
38 class Navigator; 38 class Navigator;
39 class Page; 39 class Page;
40 40
41 class NavigatorContentUtils FINAL : public RefCountedSupplement<Page, NavigatorC ontentUtils> { 41 class NavigatorContentUtils FINAL : public RefCountedSupplement<Page, NavigatorC ontentUtils> {
42 public: 42 public:
43 virtual ~NavigatorContentUtils(); 43 virtual ~NavigatorContentUtils();
44 44
45 static const char* supplementName(); 45 static const char* supplementName();
46 static NavigatorContentUtils* from(Page*); 46 static NavigatorContentUtils* from(Page&);
47 47
48 static void registerProtocolHandler(Navigator*, const String& scheme, const String& url, const String& title, ExceptionState&); 48 static void registerProtocolHandler(Navigator&, const String& scheme, const String& url, const String& title, ExceptionState&);
49 49
50 static String isProtocolHandlerRegistered(Navigator*, const String& scheme, const String& url, ExceptionState&); 50 static String isProtocolHandlerRegistered(Navigator&, const String& scheme, const String& url, ExceptionState&);
51 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons t String& url, ExceptionState&); 51 static void unregisterProtocolHandler(Navigator&, const String& scheme, cons t String& url, ExceptionState&);
52 52
53 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* ); 53 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient* );
54 54
55 private: 55 private:
56 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client) 56 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client)
57 : m_client(client) 57 : m_client(client)
58 { } 58 { }
59 59
60 NavigatorContentUtilsClient* client() { return m_client; } 60 NavigatorContentUtilsClient* client() { return m_client; }
61 61
62 NavigatorContentUtilsClient* m_client; 62 NavigatorContentUtilsClient* m_client;
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // NavigatorContentUtils_h 67 #endif // NavigatorContentUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698