| OLD | NEW |
| 1 // Copyright 2009, The Chromium Authors | 1 // Copyright 2008, 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 |
| 11 // copyright notice, this list of conditions and the following disclaimer | 11 // copyright notice, this list of conditions and the following disclaimer |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Returns, by reference in urls, the set of bookmarked urls. This returns | 49 // Returns, by reference in urls, the set of bookmarked urls. This returns |
| 50 // the unique set of URLs. For example, if two bookmarks reference the same | 50 // the unique set of URLs. For example, if two bookmarks reference the same |
| 51 // URL only one entry is added. | 51 // URL only one entry is added. |
| 52 // | 52 // |
| 53 // If not on the main thread you *must* invoke BlockTillLoaded first. | 53 // If not on the main thread you *must* invoke BlockTillLoaded first. |
| 54 virtual void GetBookmarks(std::vector<GURL>* urls) = 0; | 54 virtual void GetBookmarks(std::vector<GURL>* urls) = 0; |
| 55 | 55 |
| 56 // Blocks until loaded. This is intended for usage on a thread other than | 56 // Blocks until loaded. This is intended for usage on a thread other than |
| 57 // the main thread. | 57 // the main thread. |
| 58 virtual void BlockTillLoaded() = 0; | 58 virtual void BlockTillLoaded() = 0; |
| 59 | |
| 60 protected: | |
| 61 ~BookmarkService() {} | |
| 62 }; | 59 }; |
| 63 | 60 |
| 64 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 61 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ |
| OLD | NEW |