1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_COMMON_CONTENT_SETTINGS_HELPER_H_ 6 #define CHROME_COMMON_CONTENT_SETTINGS_HELPER_H_ 7 #pragma once 8 9 #include <string> 10 11 #include "base/string16.h" 12 13 class GURL; 14 15 namespace content_settings_helper { 16 17 // Return simplified string representing origin. If origin is using http or 18 // the standard port, those parts are not included in the output. 19 std::string OriginToString(const GURL& origin); 20 string16 OriginToString16(const GURL& origin); 21 22 } // namespace content_settings_helper 23 24 #endif // CHROME_COMMON_CONTENT_SETTINGS_HELPER_H_ 25